Thread: PHP Question
View Single Post
Old 03-02-2012, 01:04 AM  
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by CHMOD View Post
If you think about security, your code could cause issues though. I would write it this way:

if(!file_exists('header.php')) {die("ERROR MESSAGE HERE");}
include ('header.php');

Yeah, we addressed that through ICQ, and got rid of the includes, haha.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote