943,885 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 321
  • PHP RSS
Apr 3rd, 2009
0

php

Expand Post »
Hi,
How can i upload a text file using move_upload_file() in php because it returns error like

Warning: move_uploaded_file(/thenewcareers.com/httpdocs/newcareers/demo/jobseeker/resumes/email.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in D:\inetpub\vhosts\thenewcareers.com\httpdocs\newcareers\demo\jobseeker\upload.php on line 19

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php99A0.tmp' to '/thenewcareers.com/httpdocs/newcareers/demo/jobseeker/resumes/email.txt' in D:\inetpub\vhosts\thenewcareers.com\httpdocs\newcareers\demo\jobseeker\upload.php on line 19

if anyone knows, pl return to me. Thanks a lot
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ashafaaiz is offline Offline
20 posts
since Dec 2008
Apr 3rd, 2009
0

Re: php

http://www.tizag.com/phpT/fileupload.php

Do you have write permissions ?
Sponsor
Featured Poster
Reputation Points: 550
Solved Threads: 731
Bite my shiny metal ass!
pritaeas is offline Offline
4,177 posts
since Jul 2006
Apr 3rd, 2009
0

Re: php

yes you must not have all the permissions
Reputation Points: 16
Solved Threads: 48
Posting Whiz
BzzBee is offline Offline
327 posts
since Apr 2009
Apr 3rd, 2009
0

Re: php

just go to your ftp and right click on your folder where you want to upload the file and click on CHMOD and change the permissions or manually write the text field 777 for all the permissions
Reputation Points: 16
Solved Threads: 48
Posting Whiz
BzzBee is offline Offline
327 posts
since Apr 2009
Apr 3rd, 2009
0

Re: php

Click to Expand / Collapse  Quote originally posted by BzzBee ...
just go to your ftp and right click on your folder where you want to upload the file and click on CHMOD and change the permissions or manually write the text field 777 for all the permissions
Also note that some hosts only allow a total of 555 permissions in which case that will not be possible. And also make sure when using the move_uploaded_file that the specified target directory allready exists.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: functions
Next Thread in PHP Forum Timeline: submit button not working





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC