SCRIPT_NAME value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

SCRIPT_NAME value

Post by anjanesh »

Hi

Does substr($_SERVER["SCRIPT_FILENAME"], strlen($_SERVER["DOCUMENT_ROOT"])) always evaluate to $_SERVER["SCRIPT_NAME"] ?

Thanks
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

It's hard to make a statement like that, because the $_SERVER array is information from the server itself, and all servers aren't configured the same way.
Post Reply