View Single Post
Old 01-04-2006, 10:07 PM  
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Quote:
Originally Posted by brizzad
If i'm doing this within the <?php and ?> tags, do I need to still do the whole thing

<?php include("file"); ?>

or can I just do

include("file");
If you're already inside a pair of <?php ?> tags then you don't need to put them again... You might also want to consider putting a @ in front of the include (@include('file.html');). That way if there's an error and it's not found it won't print out one of those ugly php messages that shows your path etc.
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote