o.za>cc:
Subject: [PHP-INST] PHP_SELF
01/06/2003
Hi,
I am very new to php. I have installed and done some simple scripts for
eg. Display 'Hello World', read entries from a database but when I try
and put something into a database I get problems. I use $PHP_SELF in
the script but when I open it I get the following error:-
Notice:
Ailon Katsutsy
cc:
Subject: [PHP-INST] $PHP_SELF
Hi there,
I have installed php and tried creating a basic "hello world" script. Worked fine.
Tried to do a simple query to a MySql table. Worked fine too.
Two problems I am facing though:
1. When using $PHP_SELF i get the following error: Undefined variable: PHP_SELF
2. When calling a php pa
hello,
it is probably because in 4.2 register globals are set to off by default.
you have two choices:
1. do a search and replace on your scripts looking for $PHP_SELF and
changing it to $_SERVER['PHP_SELF']
2. assuming you use a common config file you can add $PHP_SELF =
$_SERVER['PHP_SELF']
Scott--
The variable PHP_SELF requires the directive "register_globals" (automatically create
variables) to be on, which it is by default in PHP < 4.2. For security reasons,
enabling this directive IS NOT a good idea, and the default installation has been
changed in PHP 4.2. For more informa
I am relatively new to PHP, but I have a problem that no one else has talk
about, so I'm guessing it's something simple.
I'm running PHP on WinXP (with IIS). I upgraded from PHP 4.1.2 to PHP 4.2,
and now all of of my scripts that use the variable PHP_SELF do not work.
Undefined variable.
I figured
Use the function phpinfo() in your script and choose.
B.
Le 2001.09.20 15:27, [EMAIL PROTECTED] a écrit :
> Hi,
> I'm sure this point has been discussed thousand of times, but does anyone
> know what to do to make the $PHP_SELF working well under win2000 because
> in
> my case,
>
> echo $PHP_SEL
nt: Thursday, September 20, 2001 9:27 AM
Subject: [PHP-INST] $PHP_SELF = php4/php.exe on win2000
Hi,
I'm sure this point has been discussed thousand of times, but does anyone
know what to do to make the $PHP_SELF working well under win2000 because in
my case,
echo $PHP_SELF
retu
Hi,
I'm sure this point has been discussed thousand of times, but does anyone
know what to do to make the $PHP_SELF working well under win2000 because in
my case,
echo $PHP_SELF
returns
php4/php.exe/path_to_my_file.php
I understood tha this piece of path (php4/php.exe) is tooken in the Apache
10 matches
Mail list logo