Jump to content

Recommended Posts

Posted (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 by natimage
Posted

Tracy, try adding "public_html/" the the nav.php path there, like so:

>include $_SERVER['DOCUMENT_ROOT']."/public_html/inc/nav.php";

Posted

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! :rolleyes:

 

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. :)

Posted

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. :rolleyes:

 

I'm glad you got it working :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...