Connecting Tech Pros Worldwide Forums | Help | Site Map

php on windows / PHP_SELF undefined

chris
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi all,
the problem i have is as followes:

i have a newly installed w2k server / iis 5 with php 4.3.5. When i start a
first testapplication, i get an error message:

Notice: Undefined variable: PHP_SELF in
E:\Inetpub\php4test.eventprofis.local\sloanedate\v 002\includes\functions.php
on line 20

So my silly newbie question: how can i solve this?

When looking at the manual, it says that php_self is NOT available at
command line mode, but i dont know how to change this.



Many thanks in advance.
Chris



Alvaro G Vicario
Guest
 
Posts: n/a
#2: Jul 17 '05

re: php on windows / PHP_SELF undefined


*** chris wrote/escribió (Fri, 11 Jun 2004 11:29:13 +0200):[color=blue]
> Notice: Undefined variable: PHP_SELF in
> E:\Inetpub\php4test.eventprofis.local\sloanedate\v 002\includes\functions.php
> on line 20[/color]

Try $_SERVER['PHP_SELF'] instead.

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
chris
Guest
 
Posts: n/a
#3: Jul 17 '05

re: php on windows / PHP_SELF undefined


Yep, this works ... thank you!

Chris


"Alvaro G Vicario" <alvaro_QUITAR_REMOVE@telecomputeronline.com> schrieb im
Newsbeitrag news:1bpurvnlnqs0j$.1fee0cik0n79n.dlg@40tude.net.. .
[color=blue]
> Try $_SERVER['PHP_SELF'] instead.[/color]


Closed Thread