Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 General Forums > Lounge / Off Topic > Web Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2007, 10:35 AM
munchie munchie is offline
Newbie
 
Join Date: Oct 2006
Location: Ontario, Canada
Posts: 2
Default Upload File php script

I am having a proble using an file upload script that worked perfectly on my former host site.
The listings directory has been CMOD 777

The part of the script producing the error is;

@copy($_FILES['img']['name'][$i], "$FileSave0") or $log .= "Couldn't copy image ".$_FILES['img']['name'][$i]." to ".$FileSave0." on server
";

The error message I get (where mysite has been substituted for the actual site).

Quote:
Couldn't copy image Blue hills.jpg to /home/mysite/public_html/listings/5a.jpg on server
Is there some additional scripting required to post directly to a directory on my site? It worked fine on my former host.

Any help would be appreciated.......
Thanks :?
Reply With Quote
  #2  
Old 05-01-2007, 07:07 AM
gavward gavward is offline
Newbie
 
Join Date: Nov 2006
Posts: 4
Default

I always use move_uploaded_file myself.

Try dropping the @ and see what error it produces.

My guess is probably the source path is wrong or not being carried over properly. If you aren't using move_uploaded_file before that copy command then they file exists in temp only. Try using ['tmp_name'] instead of ['name']
Reply With Quote
  #3  
Old 05-01-2007, 08:37 AM
harrysudana harrysudana is offline
Newbie
 
Join Date: Mar 2007
Location: bali - indonesia
Posts: 20
Default

yes, i always use move_uploaded_file too.
Try check your folder permission.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a script zanass Web Development 1 06-01-2009 04:54 AM
can not upload file more than 200KB medinipur Shared Web Hosting 0 04-19-2009 12:06 PM
Email to Script mcentral Reseller Hosting 1 01-29-2007 09:23 AM


All times are GMT -5. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.