Forum Moderators: coopster

Message Too Old, No Replies

Warning: file get contents?

         

ToxinMan

2:17 am on Jan 22, 2008 (gmt 0)

10+ Year Member



Hey there guys
does anyone know of what causes these errors?

Warning: file_get_contents(/home/ricky/public_html/up/gamestemplate.php) [function.file-get-contents]: failed to open stream: No such file or directory in /home/rickyb/public_html/up/upload_work.php on line 67

Warning: fopen(/home/ricky/public_html/up/twth.html) [function.fopen]: failed to open stream: No such file or directory in /home/rickyb/public_html/up/upload_work.php on line 71

Warning: fwrite(): supplied argument is not a valid stream resource in /home/rickyb/public_html/up/upload_work.php on line 72

Warning: fclose(): supplied argument is not a valid stream resource in /home/rickyb/public_html/up/upload_work.php on line 73

Thanks
Ricky

dreamcatcher

8:17 am on Jan 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ricky,

The clue is in the error messages:

..file_get_contents(/home/ricky/public_html/up/gamestemplate.php) [function.file-get-contents]: failed to open stream: No such file or directory in /home/rickyb/public_html/up/upload_work.php on line 67

fopen(/home/ricky/public_html/up/twth.html) [function.fopen]: failed to open stream: No such file or directory in /home/rickyb/public_html/up/upload_work.php on line 71

Have you checked that the 'up/gamestemplate.php' and 'up/twth.html' files exist?

dc

[edited by: dreamcatcher at 9:47 am (utc) on Jan. 22, 2008]

phparion

8:30 am on Jan 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



also check chmod() i.e the file permissions. it must be writable.

ToxinMan

9:21 am on Jan 22, 2008 (gmt 0)

10+ Year Member



Thanks