natimage Posted July 8, 2004 Posted July 8, 2004 (edited) Nevermind...as I suspected...something stupid. I figured it out...link removed because the site's not finished yet. I know I must be missing something easy...but my eyeballs are going cross-eyed from looking at this. I cannot for the life of me figure out why this include will not work. If anyone has a minute... Code in the index file is: ><table id="topbar" width="100%" height="300" cellspacing="0" cellpadding="0"> <tr> <td width="16%" height="300" valign="top"> <?php //get nav file include $_SERVER['DOCUMENT_ROOT']."/inc/nav.php"; ?> </td> <td width="84%" valign="middle"><font color="#333333" size="5" face="Arial, Helvetica, sans-serif">THIS SITE...coming soon!!</font></td></tr> </table> Indexing is not yet turned off, so you should be able to see the directory structure as well. Thanks!! Edited July 8, 2004 by natimage Quote
borfast Posted July 8, 2004 Posted July 8, 2004 Tracy, try adding "public_html/" the the nav.php path there, like so: >include $_SERVER['DOCUMENT_ROOT']."/public_html/inc/nav.php"; Quote
borfast Posted July 8, 2004 Posted July 8, 2004 Glad you got it, Tracy. May I ask what was the problem? Quote
natimage Posted July 8, 2004 Author Posted July 8, 2004 Sure...but I'll be blushing! Using DW to upload, the inc folder where I put include files ended up at the same level as public_html instead of inside public_html where I intended. This happened because I neglected to define the root folder in the DW setup. To tell how crossed my eyes were, I LOOKED at the directory structure in both DW and Filezilla and didn't notice this little inconsistency! I finally opened File Manager and Cpanel before my eyes could settle in on it! I knew as soon as I posted about it I'd figure it out! Almost always happens that way! Thanks for taking the time to respond, though. Quote
borfast Posted July 9, 2004 Posted July 9, 2004 No problem, Tracy. Always try to solve the problem for about 5 minutes. Then post your question in the forums. If you do this, you know you'll solve the problem by yourself in the next few minutes. I'm glad you got it working Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.