[PHP] "Warning: Undefined variable" when used locally, but fine on remote server

2001-09-24 Thread Justin Colson

I have recently installed Apache 1.3.2 and PHP 4.0.6 using the instructions
at http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming on
a Win98 machine which I will later use as an intranet server (NT workstation
refuses to detect NT server, and the machine is too slow for Win2k). When I
run scripts on this instalation that work fine on my free webspace at
uklinux.net, they return "Warning: Undefined variable: sub" at every
occurance of my menu system which uses sub as it its main vairable, if i
specify the variable in the URL that partiular page will work, but only of
the links



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Getting the current URL (with arguments) as a variable, then removing another variable from that ?

2001-07-17 Thread Justin Colson

Is there a way that I can get the current URL, like

myfile.php?sub=web?page=web1

And then remove the ?sub=web from it, even if the value of ?sub is different
? Someone said something about $PHP_SELF but I dont know where to go from
there.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]