| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2004
Lives in California, USA
Hosted on Sonet
14 posts
Gave thanks: 2
Thanked 0 times
|
Problem with upload script.
Okay, I have a script I use to manage a site. It creates the directories and uploads/deletes/moves the files. The problem I'm having is that it won't allow an upload over 3MB. Since files that large are rare, it should be trivial to upload the file manually. However, because the directories are created by the php script, I can't write to the them. cPanel's File Manager won't allow me to change the directory's permissions, either. I tried writing a script that moved the manually uploaded file, but the permissions on the file won't allow the script to move it. Changing permissions in File Manager didn't help.
So, to make this easier in the future, how do I fix it to allow larger uploads, preferably up to 15MB(that's the max the script will allow)? My server is Sonet, if that makes any difference. Thanks in advance... |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Excelling Contributor
Joined in Mar 2007
Lives in Wales
Hosted on dime999
610 posts
Gave thanks: 47
Thanked 46 times
|
Have you checked the php.ini for the the limit there?
__________________
Markus |
|
|
|
| This user thanks mgk for this great post! | Andy Olivera (April 29th, 2007) |
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2004
Lives in California, USA
Hosted on Sonet
14 posts
Gave thanks: 2
Thanked 0 times
|
Mgk, the php.ini didn't work(tried it in both the script directory and public_html). However, your suggestion turned me on to another thread that dealt with setting the values through .htaccess. I tried that and now everything works fine.
Thanks for the help! ![]() |
|
|
|
|
|
#4 (permalink) |
|
I'm Dope as Crack
Resident.
Joined in Mar 2004
Lives in Asheboro, NC
Hosted on Pass 7
13,036 posts
Gave thanks: 7
Thanked 29 times
|
Some servers may still be using htaccess rather than php.ini. Thanks for mentioning what worked and what didn't.
__________________
|
|
|
|
|
|
#6 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
|
I'd assume changing the max_upload_size
Also- notice that your php is running as nobody(99) so this means you're not running phpsuexec either. I'd contact support- cause the files you're uploading are vulnerable to other scripts running a muck
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|