Reply to Re: include_path ?

Your name:

Reply:


Posted by tom_sawyer70@yahoo.com on 04/17/07 22:53

I cannot get anything php related to seem to process with this page.
Ideally, I'd like to include a file where the <div id="nav"> starts,
but I cannot even get a simply echo statement to process.

So in my test, I set a variable at the top and want to display it in
my navigation window. The CSS works, as the format appears
correctly. However, it does not appear that php is processing
anything past the first line.

The include path is defined as:
..:/srv/www/htdocs:/srv/www/htdocs/includes:usr/share/php5:/usr/share/
php5/PEAR

The root of the site is /srv/www/htdocs and has the web.css. The file
below is in a subdirectory "jennifer" and references the web.css from
the higher level.

Ultimately, I'd like to call web.css from the subdir jennifer, and
include a navigation file that can be found in /srv/www/htdocs/
includes/nav.php.

TIA.

=====

<?php $thisPage='jennifer';?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
<title>The Family Page</title>
<link rel="stylesheet" type="text/css" href="../web.css" />
</head>

<body>

<div id="header">
<h1>The Family</h1>
</div>

<div id="nav">
<?php echo $thisPage;
?>
</div>


<div id="content">
<h2>Welcome!</h2>
<img class="floatright" src="jennifer.jpg" width="90" height="120"
align="right" alt="Jennifer's Picture" />
<p>Jennifer's page</p>

<h2>Latest News and Information</h2>
<p>Improvements to this site.</p>
<?php echo $thisPage;
?>

<h2>What's Coming Soon!</h2>
<p>More improvements to this site.</p>

</div>

</body>

</html>

[Back to original 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

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