Jump to content

Archived

This topic is now archived and is closed to further replies.

w3sl3y2003

Blank $PHP_SELF

Recommended Posts

Hi all,

When ever i try to use $PHP_SELF it fails because its empty. register_globals is turned off. What could be the cause of this?

All assistance is appreciated!!

Share this post


Link to post
Share on other sites
have you defined it? the actual global you are looking for is $_SERVER['PHP_SELF'] so unless you have done...

$PHP_SELF = $_SERVER['PHP_SELF'];

it will fail.

Share this post


Link to post
Share on other sites
take heed, PHP_SELF can be tainted. Use $_SERVER['SCRIPT_NAME'] instead.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.