Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Problem with Apache

Status
Not open for further replies.

Gyrfalcon

Programmer
Jan 28, 2004
1
US
I've just recently installed PHP 4.2.1 and I'm having problems trying to start a session. I'm using Apache 2 running on (gasp) Windows XP. The exact errors looks like this:

[Sat Jul 20 08:02:41 2002] [error] [client 127.0.0.1] PHP Notice: Undefined variable: PHP_SELF in C:\Program Files\Apache Group\Apache2\htdocs\wordog\wakit\index.php on line 2, referer: [Sat Jul 20 08:02:41 2002] [error] [client 127.0.0.1] PHP Warning: Cannot send session cache limiter - headers already sent in C:\Program Files\Apache Group\Apache2\htdocs\wordog\wakit\accesscontrol.php on line 3, referer:
I'm kinda new to PHP so can anyone help out?
 
As you are using php4.2.x you cannot use $PHP_SELF

try to user $_SERVER['PHP_SELF'] instead.

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top