I tried including a PHP file from a different directory...
<?php include("../news.php");?>
Normal PHP includes work, however I cant get it to work if the file im trying to include is in a diff directory. Its in /forums/
Warning: include(../news.php) [function.include]: failed to open stream: No such file or directory in /home/user/public_html/index.php on line 150
Warning: include() [function.include]: Failed opening '../news.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/index.php on line 150
PHP including a file from a different directory?
in Customer Service
Posted
I tried including a PHP file from a different directory...
<?php include("../news.php");?>
Normal PHP includes work, however I cant get it to work if the file im trying to include is in a diff directory. Its in /forums/
In need of assistance.