Page 1 of 1

how to upload the file in PHP?

Posted: Wed Dec 03, 2008 11:11 pm
by prachu.kul
i've used tutorial on w3school......!!
bt it gives me error like...


Warning: move_uploaded_file(upload/cand196oi.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\xampp\htdocs\practice\file_upload.php on line 25



wat to do now further??

Re: how to upload the file in PHP?

Posted: Thu Dec 04, 2008 12:00 am
by Christopher
Post the code.

Re: how to upload the file in PHP?

Posted: Thu Dec 04, 2008 12:37 am
by prachu.kul
arborint wrote:Post the code.

hey its working in Firefox..
previously i ws using chrome...
thank u for reply....!!

Re: how to upload the file in PHP?

Posted: Fri Dec 05, 2008 12:27 pm
by SteveC
prachu.kul wrote:
arborint wrote:Post the code.

hey its working in Firefox..
previously i ws using chrome...
thank u for reply....!!

That's weird. Don't you want to figure out why it wasn't working in Chrome?

Re: how to upload the file in PHP?

Posted: Sat Dec 06, 2008 6:21 am
by JAB Creations
failed to open stream simply means the path to the file was incorrect.

Using a different browser will have no effect on serverside code unless you're doing some stuff that makes my code look normal. :twisted: