Riseykins Posted October 25, 2008 Share Posted October 25, 2008 I have pages in a directory: http://www.burningviolet.com/graphics I want to include a header that is saved in the public_html directory. How would I do this? I don't like uploading my headers all the time. Thanks! Link to comment https://forums.phpfreaks.com/topic/130027-php-includes/ Share on other sites More sharing options...
btherl Posted October 25, 2008 Share Posted October 25, 2008 Is graphics under public_html? If so you can try like this: include("../included.php"); Link to comment https://forums.phpfreaks.com/topic/130027-php-includes/#findComment-674178 Share on other sites More sharing options...
BoltZ Posted October 25, 2008 Share Posted October 25, 2008 Also I know this isn't the place to say this but you may want to rethink how much ads you have.. Link to comment https://forums.phpfreaks.com/topic/130027-php-includes/#findComment-674330 Share on other sites More sharing options...
Lee-Bartlett Posted October 25, 2008 Share Posted October 25, 2008 Or keep the adds just put em together more nicely Link to comment https://forums.phpfreaks.com/topic/130027-php-includes/#findComment-674339 Share on other sites More sharing options...
jnerotrix Posted October 25, 2008 Share Posted October 25, 2008 all he needs to do is just <?php include("../header.php"); ?> Link to comment https://forums.phpfreaks.com/topic/130027-php-includes/#findComment-674341 Share on other sites More sharing options...
BoltZ Posted October 25, 2008 Share Posted October 25, 2008 Yes that was said already Link to comment https://forums.phpfreaks.com/topic/130027-php-includes/#findComment-674344 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.