| | |
Issues w/ file uploads in PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2004
Posts: 3
Reputation:
Solved Threads: 1
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
Many thanks,
Leo
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.
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 :-)
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
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
![]() |
Similar Threads
Other Threads in the PHP Forum
- Previous Thread: interagtion between my gallery and phpbb
- Next Thread: Security issues
| Thread Tools | Search this Thread |
advanced ajax apache api array basics beginner binary broken cakephp check checkbox class cms code combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert integration ip java javascript job joomla js limit link login loop mail menu mlm multiple mysql oop parse password paypal pdf php problem procedure query radio random recursion regex remote script search server sessions smarty smash sms soap source space sql stored syntax system table traffic tutorial unicode update upload url validator variable video web xml youtube






