Running First PHP Program

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Post by Xerpher » Sun Mar 23, 2003 5:44 pm

That code is a protection so that only the startup script can load that file. It is for both security and server processor power... it could cause your server to crash if there was too many undefined things in it.

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Post by Xerpher » Mon Mar 24, 2003 10:00 am

Its basically checking to see if the url in the address bar contains "mod.php" since mod.php is the start script that would run it. If the url does not contain "mod.php" it won't work.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest