Welcome to WebmasterWorld Guest from 54.198.108.19

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Having trouble with uploads

php.ini

     
3:33 pm on Jan 6, 2007 (gmt 0)

New User

10+ Year Member

joined:Nov 25, 2003
posts:31
votes: 0


im having trouble with upload.. i think its timing out i change the 60 to 600 still no help 2.53mb work but 2.93mb+ will not go

register_globals = off
allow_url_fopen = off

memory_limit = 50M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 8M

expose_php = Off
max_input_time = 600
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so

any suggestions
thank u for the help

3:37 pm on Jan 6, 2007 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 0


Hello!

What is the error that is given, if any? You might be able to find something here: Handling File Uploads [us2.php.net].

4:15 pm on Jan 6, 2007 (gmt 0)

New User

10+ Year Member

joined:Nov 25, 2003
posts:31
votes: 0


no error for this in logs
i've seen this code as im searching

ini_set('max_execution_time', 600); // 10 minutes

will this help and can i insert this anywhere in code

Thanks

4:31 pm on Jan 6, 2007 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 0


>>>will this help and can i insert this anywhere in code

It may help; it's worth a try. Insert it at the top of your upload script.

Seems a little strange, though, that no errors are showing.

4:36 pm on Jan 6, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 22, 2005
posts:388
votes: 0


I use to have this same problem. My host said that the server would not allow scripts to run that took that much server time. So, I looked at my script and split it into two parts. The first uploaded the file. The second resized the file. By doing this, I managed to get it to work.
4:41 pm on Jan 6, 2007 (gmt 0)

New User

10+ Year Member

joined:Nov 25, 2003
posts:31
votes: 0


its hosted at godaddy

what confuses me is its a small file size..

it allowed 2.53mb to go but thats abt the biggest.. yesterday i couldn't add anything larger than 2mb and inserted

memory_limit = 50M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 8M

now it seem to be a time issue

godaddy offers no help with this php.ini

i'll try the code i showed you
thanks

6:03 pm on Jan 6, 2007 (gmt 0)

New User

10+ Year Member

joined:Nov 25, 2003
posts:31
votes: 0


the code didnt work

PHP: Error parsing /home/content/g/i/l/name/html/php.ini on line 1

also i tried lin 4

PHP: Error parsing /home/content/g/i/l/name/html/php.ini on line 4

6:12 pm on Jan 6, 2007 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts:4422
votes: 9


FTP session?
Compressing file?
6:21 pm on Jan 6, 2007 (gmt 0)

New User

10+ Year Member

joined:Nov 25, 2003
posts:31
votes: 0


sorry all i didnt mention uploading music from admin
12:57 am on Jan 7, 2007 (gmt 0)

New User

10+ Year Member

joined:Nov 25, 2003
posts:31
votes: 0


it looks like its at 45 seconds it times out.. HELP :)
12:48 pm on Jan 7, 2007 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts:4422
votes: 9


Duke U says
<<<
For audio and video pieces, try saving them as streaming media objects, rather than as static files
>>>
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members