fread not valid resource
Posted by: chemist458 (---.server.ntli.net)
Date: November 03, 2006 05:02PM

Dear All,
I am trying to upload pics to the wampserver. It works on my webserver, but not on my wampserver, so I know the code is right.
I have checked out my php.ini and changed the upload dir to "c:\WINDOWS\Temp" and "c:\wamp\tmp" and still I get Warning: fread(): supplied argument is not a valid stream resource in C:\wamp\www\o2m\admin\add.php on line 120.
Any ideas anyone?
George

Options: ReplyQuote
Re: fread not valid resource
Posted by: CyberSpatium (71.237.217.---)
Date: November 03, 2006 08:00PM

undo any changes you made to your php.ini file and httpd.conf file, restart apache and then post you code here

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: fread not valid resource
Posted by: chemist458 (---.server.ntli.net)
Date: November 04, 2006 10:03PM

Thanks for the response,
I have undone any changes I have done to the php.ini and httpd.conf was unchanged, and it still doesnt work, the only thing is is still changed is the GD libaray is enabled.
Can that affect it?
Would you like me to post the whole of the add.php file?
Sorry for taking so long to reply, and thanks again for yours.
George

Options: ReplyQuote
Re: fread not valid resource
Posted by: CyberSpatium (71.237.217.---)
Date: November 05, 2006 09:02PM

you are getting the supplied argument error. this has nothing to do with your php.ini file, this has to do with your php code.


CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: fread not valid resource
Posted by: chemist458 (---.server.ntli.net)
Date: November 06, 2006 01:06AM

Ok, thanks for that,
I'll check out my code.
George

Options: ReplyQuote
Re: fread not valid resource
Posted by: chemist458 (---.server.ntli.net)
Date: November 06, 2006 02:19AM

I changed my code and it worked perfectly, thanks again.
George

Options: ReplyQuote


Sorry, only registered users may post in this forum.