I cant get this to work. Im trying to include a php file that is located somewhere else. It works fine if both files are in the same directory but once i change path it errors.
In my test.php i have this code
then in the other php file i have. This “hi.php” is located at http://DOMAIN/hi.php
<?php echo "this is from hi.php"?>
These are the errors
Warning: main() [function.main]: URL file-access is disabled in the server configuration in /home/PATH/TO/test.php on line 1
Warning: main(http://DOMAIN/hi.php) [function.main]: failed to open stream: no suitable wrapper could be found in /home/PATH/TO/test.php on line 1
Fatal error: main() [function.require]: Failed opening required ‘http:/DOMAIN/hi.php’ (include_path=’.:/usr/local/php5/lib’) in /home/PATH/TO/test.php on line 1