Jump to content

Warning: filemtime() [function.filemtime]: stat failed for (...)


pdedecker
 Share

Recommended Posts

Code:

<?phpecho date("H", filemtime("http://192.168.2.20/vrtnieuws/nieuws280907.mp3"));?>

Output:

Warning: filemtime() [function.filemtime]: stat failed for http://192.168.2.20/vrtnieuws/nieuws280907.mp3 in /var/www/vrtnieuws/test.php on line 2
Why do I get this error while http://192.168.2.20/vrtnieuws/nieuws280907.mp3 does exist?Update: fixed by replacing
echo date("H", filemtime("http://192.168.2.20/vrtnieuws/nieuws280907.mp3"));

with

echo date("H", filemtime("nieuws280907.mp3"));

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...