guys, i have this error and i dont know wat should i do. im kinda new to php. pls help.
error msg.
Warning: filesize(): Stat failed for D:\projects\Kodak eportsKODAK_ALL_JOBS_REPAIR-20060310.xls (errno=2 - No such file or directory) in C:\Inetpub\wwwroot\webreport\kodak_test\include\function.php on line 74
line 74.
function add_file($data, $name) {
$fp = fopen($filename,"wb");
$data = fread($fp,filesize($data));------>error area.
fclose($fp);
my beloved pro's....pls help. urgent
thanks
no such fle error....
Moderator: General Moderators
It is as it states (no such file or directory). I would suggest checking that this file actually exists. Maybe you are missing a \ in the path name or something similar.
http://www.marionweb.com
-- Business solutions through technology[/url]
http://www.marionweb.com
-- Business solutions through technology[/url]
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
filesize() expects a filename as an argument. Is $data a filename?