|
Posted by Rik Wasmus on 12/03/07 17:59
On Mon, 03 Dec 2007 18:57:30 +0100, Dave <dmehler26@woh.rr.com> wrote:
> 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
>
> i get only the line:
> The above should have been included.
> I did not enter php mode in the test include file because of the <?
> and
> ?> sygnifying i'm already in php mode, but i tried it anyway and that
> didn't
> make a difference, either case the file was not included.
The included file should have php tags.
> This was working previously with php4, i know about the global
> variables
> not being allowed in php5, has anything else changed in regards to
> include
> files?
short_open_tags are off by default (as they should be). Use <?php instead
of <?
--
Rik Wasmus
[Back to original message]
|