You are here: Re: include files not being included « PHP Programming Language « IT news, forums, messages
Re: include files not being included

Posted by Good Man on 12/03/07 17:59

"Dave" <dmehler26@woh.rr.com> wrote in
news:4754438c$0$8683$4c368faf@roadrunner.com:

> Hello,
> I'm running php 5.2.5 installed from ports on a FreeBSD machine
> with
> apache2 as the webserver. I've got php set up properly, but it doesn't
> include include files. If i do a phpinfo() in a file that works
> telling me php file processing is working fine. Yet if i have
> something like for an example:
>
> <html>
> <head>
> <title>Test of includes</title>
> </head>
> <body>
> <h1><? include "test-include.php"; ?></h1>
> <p>The above should have been included.</p>
> </body>
> </html>
>
> and in test-include.php i have:
>
> This is a test include

The script above should be include("test-include.php");

and 'test-include.php' should be:

<?php
echo "This is a test include.";
?>

Do you have error reporting off? It would be debugging easier if it
were on.

 

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

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