RE: [PHP-WIN] Global Variable Issues

2003-03-14 Thread The Head Sage
For the $status variable, sessions might help in passing the data along pages. -Original Message- From: Cam [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2003 12:10 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Global Variable Issues Through past releases of PHP, I've deve

[PHP-WIN] Global Variable Issues

2003-03-14 Thread Cam
Through past releases of PHP, I've developed with global variables on. These days it's becoming the trend, for security & asthetics purposes, to turn global variables off... Let's say I have a $status variable that changes depending upon the user's actions on the previous page and displays a m

Re: [PHP-WIN] Global variable

2001-04-27 Thread Ruslan Ohitin
Hello Olivier, There is no print_r in PHP3. It's my error. Try this reset($HTTP_SERVER_VARS); echo "Server variables:"; while(list($name, $val) = each($HTTP_SERVER_VARS)) { echo "$name = $val"; } -- Best regards, Ruslanmailto:[EMAIL PROTECTED

Re: [PHP-WIN] Global variable

2001-04-27 Thread Руслан Охитин
Hello Olivier, Try phpinfo() or print_r($HTTP_SERVER_VARS). OB> Hi OB> Im looking for an equivalent in PHP3 for $PATH_INFO avaible in PHP4? OB> $DOCUMENT_ROOT exists on the server but not $PATH_INFO :( OB> Is there a way to script and get all server variable like ASP does: OB> For Each item In

[PHP-WIN] Global variable

2001-04-27 Thread Olivier Botineau
Hi Im looking for an equivalent in PHP3 for $PATH_INFO avaible in PHP4? $DOCUMENT_ROOT exists on the server but not $PATH_INFO :( Is there a way to script and get all server variable like ASP does: For Each item In Request.ServerVariable Response.Write "ServerVar( " & item & " ) = " & Requ