Running First PHP Program
Moderators: egami, macek, gesf
-
- New php-forum User
- Posts: 164
- Joined: Tue Aug 27, 2002 8:25 pm
- Location: Ontario, Canada
- Contact:
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.
Terra Design, my business and sole / huge PHP project... a fully dynamic and adaptive site engine.
-
- New php-forum User
- Posts: 164
- Joined: Tue Aug 27, 2002 8:25 pm
- Location: Ontario, Canada
- Contact:
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.
Terra Design, my business and sole / huge PHP project... a fully dynamic and adaptive site engine.