Issues w/ file uploads in PHP

Reply

Join Date: Jun 2004
Posts: 3
Reputation: Leo is an unknown quantity at this point 
Solved Threads: 1
Leo Leo is offline Offline
Newbie Poster

Issues w/ file uploads in PHP

 
0
  #1
Jun 14th, 2004
I have a client who's attempting to support a file upload script on several servers. All appear to have PHP configured with file_upload turned on, however *some* act as if it's not. This is an area I've not got a lot of experience in (yet) ... Any hints on what other configuration or environmental differences might cause file uploads not to work for a specific server/instance of PHP?

Many thanks,

Leo
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: Issues w/ file uploads in PHP

 
0
  #2
Jun 15th, 2004
The directory you're uploading to has to have the appropriate security attributes. The most important is the -w attribute. A directory that I use, in one app I created, has the following: drwxrwxr-x - it's used for uploading stuff to.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 3
Reputation: Leo is an unknown quantity at this point 
Solved Threads: 1
Leo Leo is offline Offline
Newbie Poster

Re: Issues w/ file uploads in PHP

 
0
  #3
Jun 15th, 2004
Thank you ... I've passed that along and we'll see if that's perhaps another part of our puzzle.

Leo
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 118
Reputation: Arizona Web is an unknown quantity at this point 
Solved Threads: 2
Arizona Web's Avatar
Arizona Web Arizona Web is offline Offline
Junior Poster

Re: Issues w/ file uploads in PHP

 
0
  #4
Jun 15th, 2004
You also may want to check your MAX_FILE_UPLOAD size in your php.ini file.
Need a website designer? arizona web design : phoenix web design : MCP Media intelligent web design and web development solutions. MCP Media is owned and operated by Chris Hooley - who happens to be a real nerd... on purpose :-)
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 156
Reputation: Dsiembab is an unknown quantity at this point 
Solved Threads: 2
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

Re: Issues w/ file uploads in PHP

 
0
  #5
Dec 9th, 2007
depending on your host you might have to copy and paste the php.ini file into the folder where you upload script is being executed of course with the before mentioned
current personal projects The H8ers Club
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 1,606
Reputation: scru has a spectacular aura about scru has a spectacular aura about 
Solved Threads: 130
Featured Poster
scru's Avatar
scru scru is offline Offline
Posting Virtuoso

Re: Issues w/ file uploads in PHP

 
0
  #6
Dec 9th, 2007
Yeh I had this problem, it's most likely as Arizona Web said with the MAX_FILE_UPLOAD in the php.ini since you said some files do upload.

I think by default it is configured to accept 2MB or less.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 156
Reputation: Dsiembab is an unknown quantity at this point 
Solved Threads: 2
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

Re: Issues w/ file uploads in PHP

 
0
  #7
Dec 9th, 2007
Originally Posted by Dsiembab View Post
depending on your host you might have to copy and paste the php.ini file into the folder where you upload script is being executed of course with the before mentioned
I meant change the php.ini MAX_FILE_SIZE for uploads in the copy. You can do this in any folder, depending on your hosting.
current personal projects The H8ers Club
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC