shocker-z Posted October 30, 2007 Share Posted October 30, 2007 I'm getting the following error running a simple mysql upload script.. Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\Temp\php14FE.tmp in E:\Liam\BKSB Logging database\faqupload.php on line 9 Warning: fread() [function.fread]: Length parameter must be greater than 0 in E:\Liam\BKSB Logging database\faqupload.php on line 9 Is this an incompatability with windows? I'm running PHP 5.2 on IIS 6 Any ways around this? I'm wondering if it's a different problem as i tried another wscript and it imput/passed all data except the actual file :S It create a temp file as you can see but when i echo the file's data back it returns blank. Regards Liam Quote Link to comment https://forums.phpfreaks.com/topic/75372-warning-filesize-functionfilesize-stat-failed-for-cwindowstempphp14fe/ Share on other sites More sharing options...
aschk Posted October 30, 2007 Share Posted October 30, 2007 Does it exist at the time you are attempting to read it? Also is the size greater than nothing? fread b0rks when filesize is 0... Quote Link to comment https://forums.phpfreaks.com/topic/75372-warning-filesize-functionfilesize-stat-failed-for-cwindowstempphp14fe/#findComment-381251 Share on other sites More sharing options...
shocker-z Posted October 31, 2007 Author Share Posted October 31, 2007 It Was permissions - needed to add IUSR to security for TEMP folder in windows and give write permissions.. Dont know why i didnt think of that earlier Liam Quote Link to comment https://forums.phpfreaks.com/topic/75372-warning-filesize-functionfilesize-stat-failed-for-cwindowstempphp14fe/#findComment-381766 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.