Page 1 of 1

"include foo.php" doesn't work

Posted: Tue Sep 05, 2006 6:18 am
by guarriman
Hi.

With 4.4.2 + Apache 2.0 on Linux, I've got these PHP lines
within '/var/www/html/vhosts/foo.com/httpdocs/index.php':
-------
print "Here 1";
include ('/var/www/html/vhosts/foo.com/httpdocs/foo.php');
print "Here 2";
-------

I get "Here 1" message, but not "Here 2", and
'/var/www/html/vhosts/foo.com/httpdocs/foo.php' does exist.

I chowned '/var/www/html/vhosts/foo.com/' for root.root, and
chmoded with 777 permissions.

What am I doing wrong? Thank you very much

Posted: Tue Sep 05, 2006 6:39 am
by malcolmboston
if in doubt.....

Code: Select all

<?php
// at the top of your page
error_reporting (E_ALL);
?>
remember *nix is also case-sensitive