eddy556 Posted June 12, 2007 Share Posted June 12, 2007 Hi, I'm having trouble with the filesize() method. Here is what I've got: $filesize_folder += filesize($file); which for some reasons returns the error: Warning: filesize() [function.filesize]: stat failed for Zombie Nation - Kernkraft (ohohoh remix).mp3 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.html on line 31 Any help is appreciated Quote Link to comment https://forums.phpfreaks.com/topic/55342-filesizefile/ Share on other sites More sharing options...
flappy_warbucks Posted June 12, 2007 Share Posted June 12, 2007 Are you sure that PHP can actully see the file and it has (presuming you are uploading it) has actully uploaded the file? Zombie Nation - Kernkraft Top song BTW Quote Link to comment https://forums.phpfreaks.com/topic/55342-filesizefile/#findComment-273550 Share on other sites More sharing options...
eddy556 Posted June 12, 2007 Author Share Posted June 12, 2007 lol thanks! Yes i'm sure it can see it because on the same page I have a link stored in a variable '$file' which works elsewhere on the page and allows it to be downloaded Quote Link to comment https://forums.phpfreaks.com/topic/55342-filesizefile/#findComment-273553 Share on other sites More sharing options...
AndyB Posted June 12, 2007 Share Posted June 12, 2007 Don't be surprised if Zombie Nation - Kernkraft (ohohoh remix).mp3 looks like a file named Zombie Nation minus Kernkraft .... spaces in filenames are bad news, operators in filenames are definitely bad news. Quote Link to comment https://forums.phpfreaks.com/topic/55342-filesizefile/#findComment-273554 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.