On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote:
> Is it possible to use the DOM to add (HTML) elements to a page at the time
> the page is being shown? The HTML and VBScript shown below is a simplified
> version of what I need to do but of course I need to do it in PHP. Sin
Is it possible to use the DOM to add (HTML) elements to a page at the time
the page is being shown? The HTML and VBScript shown below is a simplified
version of what I need to do but of course I need to do it in PHP. Since PHP
is server-side (right?) perhaps it is not possible.
Dynamic Table De
On Saturday 28 August 2004 09:43, gc wrote:
> Hi all,
>
> I'm Gene Candelaria and I'm a PHP and MySQL newbie.
You have started a new thread by taking an existing posting and replying to
it while you changed the subject.
That is bad, because it breaks threading. Whenever you reply to a message,
yo
* Thus wrote John Nichel:
> John Holmes wrote:
>
> >From: "Jay Blanchard" <[EMAIL PROTECTED]>
> >
> >>Probably Holmes.
> >
> >
> >Not officially. Might look into it, though, but this is really just a
> >hobby for me. :)
> >
> >I think that if you've been on the list for over a year, you should be
is it possible to add a custom icon to a text file on the server
side..and then download the completed file to the user's desktop
would you put some type of AddType into the htacccess folder to do this
?
like AddType image/x-icon .ico
can php do something like this ?
many thanks
g
Hi all,
I'm Gene Candelaria and I'm a PHP and MySQL newbie.
I have a feeling a lot of you have seen this before. I'm teaching myself
PHP/MySQL trying to setup a guestbook. I'm running latest versions of
Apache, PHP and MySql on my WIN2k machine. I have them working, except, I
get the messages:
1.You must call session_start before making a HTML for
client.
2.Please use if (!session_is_registered('vb1'))
session_register('vb1');
--- "S. Kang" <[EMAIL PROTECTED]> wrote:
>
>
> Afzal Hussain ) wrote:
>
> >
> >
> >
> >
> >>Sir,
> >>I am afzal hussain from bangladesh. A
Afzal Hussain ) wrote:
Sir,
I am afzal hussain from bangladesh. Acually i am getting some problem using session in
php. This is the sample code that i have written,
session_start();
//>>$vbl="This variable is registered";
//>>session_register('vbl');
$_SESSION['vb1'] = "This variable is regist
Dears,When i run "rm -rf /tmp/sess_*" ,It are meaning
that i clean every session.
When i want to my program,I receive following warning
:
Warning: Unknown(): Your script possibly relies on a
session side-effect which existed until PHP 4.2.3.
Please be advised that the session extension does not
con
> -Original Message-
> From: bskolb [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Dynamic Function with return?
>
>
> Sample Code:
>
> //
> function testFunction($foo) {
> return $foo=="TES
Thanks for the quick reply, I wasn't aware that passing a variable for the
object would work.
New code:
class testClass {
function testFunction($foo) {
return $foo=="TEST";
}
}
$testObj = new testClass;
$testFunc = "testFunction";
echo $testObj->$testFunc("TEST");
-
1 way is here.You can use object & OOP.
--- bskolb <[EMAIL PROTECTED]> wrote:
> Sample Code:
>
> //
> function testFunction($foo) {
> return $foo=="TEST";
> }
>
> function wrapper($foofunc, $foovar) {
> return eval("return $foofunc($foovar);");
> }
>
I struggled with this one as well and the solution is quite simple;
1. Every PHP module that is reached via the action field in a form where
the method is POST (most of mine are) never outputs any html except a http
redirect (it will edit values, update the database, save session data, then
does
On Fri, 27 Aug 2004 18:48:16 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> Justin Patrin wrote:
> > number_format($number, 2);
> >
>
> Does not work. Desired results:
>
> >>
> >>1000 should return 1,000
> >>1000.5 should return 1,000.5
> >>1000.25 should return 1,000.25
> >>so on.
>
> Actu
Sample Code:
//
//
This code works. It calls the function and
receives the appropriate return value.
But, is there a better way of doing this?
It seems a bit round-a-bout.
Thanks!
> Hello,
>
> I am sure this has been asked more then a few times but ... I have a web
> site where almost every page is dynamically
> created. So if at some point in the site if you hit your browsers back
> button a popup window occurs and asks if you want
> to resubmit the data. Upon clickin
On Fri, 2004-08-27 at 16:20, Michael Gale wrote:
> Hello,
>
> I am sure this has been asked more then a few times but ...
So why not search the archives then? :)
> I have a web site where almost every page is dynamically
> created. So if at some point in the site if you hit your browsers
is this php script at the top of the page, there is nothing before it?
--
-->>
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
<<--
Hello,
I am sure this has been asked more then a few times but ... I have a web site
where almost every page is dynamically
created. So if at some point in the site if you hit your browsers back button a popup
window occurs and asks if you want
to resubmit the data. Upon clicking yes the
I have deleted session_start() at login.php
Thus i have 1 session_start()
But i receive them yet.
Yours,Mohsen
--- Jasper Howard <[EMAIL PROTECTED]> wrote:
> that was a bit confusing, but it looks like you call
> session_start() more
> than once in a script. You only need to call it
> once, and yo
that was a bit confusing, but it looks like you call session_start() more
than once in a script. You only need to call it once, and you need to call
it before any headers get sent, at the top of the script is a good place. If
you're scripts are already setup like that just ignore me. Oh, also, if y
Hi,
I'm trying to design a new validation method for an xml parsing package
that will be ported to PHP5. I've gotten schemaValidate() to work
successfully, but the error messages are nearly useless.
If an extra element is found inside another, I get a message like:
"Element channel content chec
Dears,I have 3 files.
k.php :
http://1.1.1.1/membership/login.php?g=0';
?>
login.php:
define("HOST","localhost");
define("USER","root");
define("PASS"," ");
define("DB","mem");
///
session_start();
if ($HTTP_GET_VARS['g']==1)
{
$username=$S_username;
yeah, but images with filenames something like this -> cool_image
v2.5.443.jpg
--
-->>
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
<<--
Were you trying to download any files in the format "filename v1.0.2.0.exe"
I just tried using readfile and got the same results.
Aaron
"Jasper Howard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When I created a download script a couple weeks ago I used
> readfile($filename)
Is it possible to run a command on the system using the system() or
exec() commands run as a specific user if I have the username and
password?
i.e.
[EMAIL PROTECTED]>su userNo1
[EMAIL PROTECTED]>/home/server/executeScript
all in a php system() or exec() call..
Thanks!
-Paul
---
Thanks!
Andre Dubuc wrote:
PHP 4.0.6-6.2mdk
On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote:
What PHP version had the API number 20001222 ?
Thanks
Cole
--
This message has been scanned for viruses and
dangerous content by MailScanner on mail.ashcraftfamily.net, and is
believed to be c
PHP 4.0.6-6.2mdk
On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote:
> What PHP version had the API number 20001222 ?
>
> Thanks
> Cole
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner on mail.ashcraftfamily.net, and is
> believed to be clean.
>
When I created a download script a couple weeks ago I used
readfile($filename) instead of fread() and didn't get anything like what
you're getting.
[snippet]
header("Content-type: $type");
header('Content-Disposition: attachment; filename="'.$file_name.'"');
readfile($dfile);
[/snippet]
NOTE: $
Ave,
Thanks a ton... And this is exactly what I figured I need to do. Someone
else also wrote in something similar which prompted me to go in this
direction. It's working out now by creating an additional table that maps
the users & records through ID and holds information on who is allowed
access
Ave,
Hey thanks a lot. I'm reading up on those.
I appreciate this.
Thanks.
On 8/26/04 10:07 PM, "David Bevan" <[EMAIL PROTECTED]> wrote:
> On Thu, 2004-08-26 at 13:49, PHP Junkie wrote:
>> Ave,
>>
>> Jay..
>> Firstly thanks a lot for the tips. I appreciate that and in fact I do try to
>> go
> I am
> wondering if this is my headers that are doing this, but I
> really dont know.
I think its an IE or Windows behavior and what causes it is the multiple
dots in the filename. I resorted to naming our downloads
"filename-v1_0_2_1.exe"
> -Original Message-
> From: Aaron Todd [mail
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 27 August 2004 09:00, Gunter Sammet wrote:
>
> > Yes. All my local stuff does work like a charm. I'm working with
osCommerce
> > shopping cart and all my local installs work just fine. And as I said,
when
> > I co
What PHP version had the API number 20001222 ?
Thanks
Cole
--
This message has been scanned for viruses and
dangerous content by MailScanner on mail.ashcraftfamily.net, and is believed
to be clean.
Please report any deviance from this condition immediately to the AFN
Administrator at [EMAIL PROTECT
I've created a download script that works quite nicely. The only issue with
it is that when I download a file where the file name is like "filename
v1.0.2.1.exe" there is some extra characters added into the name when it is
downloaded. So that file will be "filename v1[1].0.2.1.exe". I am
wo
Hello all. I just finished placing a new server in production and
PHP is not working. I am getting undefined variable messages when
trying to submit php based forms. Register Globals is on in
php.ini, but it still does not work. I have even tried copying a
known-good php.ini from another server
m'kay ... already got it. The routine was disabled due some internal
problems. It should be reintroduced in PHP 5.1. *wait*
http://www.rb21.com/news/index.php/m/115763/0/#msg_115763
Stefan wrote:
hi,
I extended ArrayObject (SPL) to a new class. Let's call it
ExtObjectArray. ExtArrayObject is qui
good to know
--
-->>
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
<<--
"M. Sokolewicz" <[EMAIL PROTECTED]> wrote in message
news
hi,
I extended ArrayObject (SPL) to a new class. Let's call it
ExtObjectArray. ExtArrayObject is quiet tiny, only with some simple
functions. One is called getData() and serves some string data. Now I've
overloaded the class using __toString() ...
public function __toString() {
ret
Jasper Howard wrote:
you can use md5() which will create an encrypted string
that's not entirely true, all it will do is compute the md5-hash of that
string. Which is *always* a 32-character hexadecimal number (though
before PHP5.0.0 it was returned in a different way). The big difference
betwee
From: <[EMAIL PROTECTED]>
Does the PHP script have to be already running to
communicate send a HTTP Post varibale to it (from a
DHTML client browser)? Or can it initiate the HTTP
Post fron the client that activates the PHP script?
Just like any other web page, the POST request causes the web serve
i found this a bit confusing, why were you putting $$ infront of a variable
instead of just $?
--
-->>
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
<<--
Justin Patrin wrote:
number_format($number, 2);
Does not work. Desired results:
1000 should return 1,000
1000.5 should return 1,000.5
1000.25 should return 1,000.25
so on.
Actual results:
1000=> 1,000.00
1000.5 => 1,000.50
1000.25 => 1,000.25
--
PHP General Mailing List (http://www.php.net/)
T
you can use md5() which will create an encrypted string that cannot be
encrypted, or you can use something like base64_encode() which has the
inverse base64_decode, that way you have an encrypted string in the database
but if for example a user loses their password, instead of setting a new
one, yo
Does the PHP script have to be already running to communicate send a HTTP Post
varibale to it (from a DHTML client browser)? Or can it initiate the HTTP Post fron
the client that activates the PHP script?
I know this must seems simple but I'm having troble receiving these varible from my
clien
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar <[EMAIL PROTECTED]> wrote:
> A copy of php manual I downloaded a year back
> has the following about the behaviour of
> number_format function
>
> $number = 1234.56;
> // english notation (default)
> $english_format_number =
> number_format($number
Thanks for the info. I checked the file and it does not have much in it. I
am working if I am not enabling this in php.ini correctly. I see
[Security, Performance] list after the example. To enable, I just copied
the example line, removed the [Security, Performance] stuff from the line,
and se
John Holmes wrote:
From: "Jay Blanchard" <[EMAIL PROTECTED]>
Probably Holmes.
Not officially. Might look into it, though, but this is really just a
hobby for me. :)
I think that if you've been on the list for over a year, you should be
certified automatically. heh...
---John Holmes...
WooHoo..
> > Here's the problem...
> > After a deletion, when the question list page is reloaded, the browser uses
> > the cached version of the page and the question which was just deleted is
> > still displayed. If you refresh the page, the question disappears. So, I
> > know that the deletion is working.
Local/master both still show off. I tried using the .htaccess trick, and
that did not work either. I have tried now to use the extract($_COOKIE) and
extract($_POST) option in the scripts to get around this for now, which
seems to be working, but I need to consequently do a lot of testing now to
v
[snip]
> Probably Holmes.
Not officially. Might look into it, though, but this is really just a
hobby
for me. :)
I think that if you've been on the list for over a year, you should be
certified automatically. heh...
[/snip]
I can see it now
If you have replied 'RTFM" more than once a week
Jay Blanchard wrote:
[snip]
...certification stuff...
[/snip]
I am certified.
So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong,
maybe wight.
I don't think *THAT* 'cert' will help us in the job market. ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General
From: "Jay Blanchard" <[EMAIL PROTECTED]>
Probably Holmes.
Not officially. Might look into it, though, but this is really just a hobby
for me. :)
I think that if you've been on the list for over a year, you should be
certified automatically. heh...
---John Holmes...
--
PHP General Mailing Lis
John Holmes wrote:
From: "Dan Joseph" <[EMAIL PROTECTED]>
I just saw that: http://www.phparch.com/cert/
Hmm... there are no practice exams posted...
See here: http://www.phparch.com/discuss/index.php/t/710/235/
---John Holmes...
Cool...I was wondering why we haven't seen him around lately. Con
Dan Joseph wrote:
Hi,
Know what helps me get php jobs? A resume that details almost 6 years
of php programming.
That's what most employers want. Certifications are a lot of times
looked at as watered down, and over-issued. A lot of companies also use
them as training pieces with their
[snip]
...certification stuff...
[/snip]
I am certified.
So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong,
maybe wight.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
> Know what helps me get php jobs? A resume that details almost 6 years
> of php programming.
That's what most employers want. Certifications are a lot of times
looked at as watered down, and over-issued. A lot of companies also use
them as training pieces with their internal staff
From: "Dan Joseph" <[EMAIL PROTECTED]>
I just saw that: http://www.phparch.com/cert/
Hmm... there are no practice exams posted...
See here: http://www.phparch.com/discuss/index.php/t/710/235/
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
Hmm... there are no practice exams posted...
> I just saw that: http://www.phparch.com/cert/
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
To get the pid id:
raditha dissanayake wrote:
> Mário Gamito wrote:
>
>> Hi,
>>
>> I need to kill (squid) -D
>> pidof (squid) -D gives an error :(
>>
> man pidof
> we have nowed moved to off topic territory.
>
>
> --
> Raditha Dissanayake.
> -
Jay wrote:
Hi!
Is there a ready to use PHP function for including ONLY if the file exists?
I tried it like this:
[main.php]
include_once("lib.php");
later
includeIf("somefile.php");
[lib.php]
function includeIf($filename)
{
if (!file_exists($filename))
{
include_once($filename);
Thank work.
Regards, André Caridade
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 27 de Agosto de 2004 13:42
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: paste values for one pop-up. And this pop-up is one
frame
"Andre" <[EMAIL PROTECTED]> wrote in
On Fri, 27 Aug 2004 12:54:14 +0300, Vladimir <[EMAIL PROTECTED]> wrote:
> Hello folks!
>
> I have an ini file that looks like this:
> index.rent=Rent
> index.faq=FAQ
> index.contact=Contact
> index.links=Links
>
> then I want to read this file:
> $english_messages = parse_ini_file('conf/english.i
On Fri, 27 Aug 2004 12:16:32 +0200, Jay <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Is there a ready to use PHP function for including ONLY if the file exists?
>
> I tried it like this:
>
> [main.php]
> include_once("lib.php");
> .later
> includeIf("somefile.php");
>
> [lib.php]
> function include
"Andre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Yes and don't work.
>
> The code of the frameset
>
>
> Untitled Document
>
>
>
>
>
>
>
>
>
>
>
You have to pass the variable from the frameset to the page that will be
using the variable. Change the first line
Hi,
Looking at your code, I noticed that either you're missing the closing double
quote to close off the Location expression, or you're ending it early with a
double quote at http://";.
Shouldn't it read:
header("Location: http://' . $_SERVER['HTTP_HOST']
>
> you sure the cookie is being set? try this
>
> header("Location: http://"; . $_SERVER['HTTP_HOST']
> . dirname($_SERVER['PHP_SELF'])
> . '/b.php?'.SID);
I had tried this before - no result. The cookie is set in the \temp dir
where it is intended. And
Lester Caine wrote:
Miles Thompson wrote:
Most likely this is a consequence of Windows XP SP2, one of its side
effects is blocking of popups in IE.
Strange, like smokers becoming non-smokers.
No SP2 stuff added - and unlikely to be added
This problem is affecting a couple of W2k machines as well
O
Hi!
Is there a ready to use PHP function for including ONLY if the file exists?
I tried it like this:
[main.php]
include_once("lib.php");
later
includeIf("somefile.php");
[lib.php]
function includeIf($filename)
{
if (!file_exists($filename))
{
include_once($filen
Yes and don't work.
The code of the frameset
Untitled Document
And I want to see de value of $_REQUEST in "imprimir_factura.php
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 27 de Agosto de 2004 10:31
To: [EMAIL PROTECTED]
Subject:
Hello folks!
I have an ini file that looks like this:
index.rent=Rent
index.faq=FAQ
index.contact=Contact
index.links=Links
then I want to read this file:
$english_messages = parse_ini_file('conf/english.ini');
print_r($english_messages);
What I see is:
Array ( [index.rent] => Rent )
And that's
"Andre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> But don't work that's is my problem,
> And I think this don't work because the pop-up window is a frame
> Help??
Have you seen my other post from two minutes ago?
You mean your popup contains a frameset? Then post your frameset
But don't work that's is my problem,
And I think this don't work because the pop-up window is a frame
Help??
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 26 de Agosto de 2004 23:18
To: [EMAIL PROTECTED]
Subject: [PHP] Re: paste values for one pop-u
"Andre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Hello
>
> Someone now how to paste values for one pop-up. And this pop-up is one
frame
> I am doing like this to open pop-up
>
> echo"
onclick=\"NewWindow('fact_imprime.php?factura_id=$factura_id','Ficha','700',
> '300','no',
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar <[EMAIL PROTECTED]> wrote:
>
> The latest on-line version is changed as
> below
> $number = 1234.56;
> // english notation (default)
> $english_format_number =
> number_format($number);
> // 1,234
>
> What is the best way to format numbers to put
A copy of php manual I downloaded a year back
has the following about the behaviour of
number_format function
The latest on-line version is changed as
below
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 27 August 2004 15:31, Ryan Schefke wrote:
First of all:
Using unsanitised data from forms and links is a VERY bad thing.
> Show
>
> Thank You Notes "Not Sent"
Two problems here:
1) URLs needs to be urlencode() appropriately
2) But your major problem is you're passing too
Hi, I have a jump box that sends the following value to the page.
Show
Thank You Notes "Not Sent"
Then, the below query is run:
$query = "SELECT name, event, description, cash, action, thankyou
FROM gifts WHERE customerID='$passid' $sort";
My problem is with the \'No
Miles Thompson wrote:
Most likely this is a consequence of Windows XP SP2, one of its side
effects is blocking of popups in IE.
Strange, like smokers becoming non-smokers.
No SP2 stuff added - and unlikely to be added
This problem is affecting a couple of W2k machines as well
Check Sunbelt Softwar
Jason Wong wrote:
On Friday 27 August 2004 01:28, Lester Caine wrote:
[yada yada]
Loading Mozilla on the problem machines gives a clean page with the
correct pop-up's so I simply don't know what to try next. When this sort
of thing was happening during development it was usually tracked to
faulty P
John W. Holmes wrote:
To detect them:
if(preg_match('/[^0-9a-zA-Z]/',$string))
{ echo 'bad characters present'; }
else
{ echo 'string okay'; }
or (faster):
if (!ctype_alnum($string)){
echo 'bad characters present';
} else {
echo 'string okay';
}
Aaron
--
PHP General Mailing List (http://www
Again I point out that this certification starts to make PHP valid in the
commercial world. I completely agree with everyone that certs usually aren't
worth the paper they are printed on when it comes to technical expertise but
to a PHB or client who doesn't know any better except buzz words, a
"ce
82 matches
Mail list logo