Jump to content

file_get_contents failed to open stream


rubing

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.