You are here: Re: HTML/PHP include files « HTML « IT news, forums, messages
Re: HTML/PHP include files

Posted by tom_sawyer70@yahoo.com on 04/19/07 12:31

On Apr 19, 12:04 am, "Jon Slaughter" <Jon_Slaugh...@Hotmail.com>
wrote:
> I can't be sure but chances are your paths are wrong.
>
> Whe you do
>
> <?php include ("includes/nav.php"); ?>
>
> You are including w.r.t to the current path
>
> i.e.
>
> /srv/www/htdocs/jennifer/jennifer.php is the file and its looking for
> nav.php at
> /srv/www/htdocs/jennifer/includes/nav.php
>

Jon,
Thank you for the reply. I have tried variations on the path,
including trying to go right to the file with
/srv/www.htdocs/includes/nav.php

or

http://localhost/includes/nav.php

Neither works.

The interesting thing is even if I try a basic php command, such as to
echo a string, I get no error or result. However, if I do an html
statement, such as <p>print here</p>, it works.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация