Running First PHP Program

Ask about general coding issues or problems here.

Moderators: egami, macek, 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:

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.
Terra Design, my business and sole / huge PHP project... a fully dynamic and adaptive site engine.

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

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.
Terra Design, my business and sole / huge PHP project... a fully dynamic and adaptive site engine.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests