rubing Posted September 4, 2008 Share Posted September 4, 2008 I have a php script running in a public directory: /home/ted/public_html/myphpsript.php This script includes a separate php script in a non-public directoy: require_once '/home/ted/lib/merge_mp3.inc'; When I run myphpscript.php I get the following error: Warning: file_get_contents(/home/ted/public_html/CaddleWORK.mp3) [function.file-get-contents]: failed to open stream: No such file or directory in /home/ted/lib/merge_mp3.inc on line 12 It seems this script is considering /home/public_html/CaddleWORK.mp3 as a relative URL. How can I change that??? Link to comment https://forums.phpfreaks.com/topic/122703-file_get_contents-failed-to-open-stream/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 4, 2008 Share Posted September 4, 2008 Is the capitalization of CaddleWORK.mp3 correct and what folder is it in? Link to comment https://forums.phpfreaks.com/topic/122703-file_get_contents-failed-to-open-stream/#findComment-633642 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.