PHP/4.2.2 post issue..

rob
rob's picture

Joined: 2002-08-15
Posts: 22
Posted: Thu, 2002-08-15 15:56

My Apache/2.0.39 (sparc solaris9) DAV/2 PHP/4.2.2 with Gallery
v1.3.1-cvs-b12 has a php upload problem..

when gallery uploads a zip, jpg or several jpg files only the first ~2k
of each file makes it to the host...

I don't see anything in error_log, error_php
register_globals = on
post_max_size = 128M
max_execution_time = 120
file_uploads = 1
magic_quotes_* = off
safe_mode = off
upload_tmp_dir = /usr/tmp

where is the next place I should dig to find this php upload issue?

 
matsinet

Joined: 2002-07-24
Posts: 16
Posted: Thu, 2002-08-15 16:33

You might ask your ISP if they are limiting the uploads within PHP. Although 2K does sound a little strict. Normally PHP is limited to 2Meg uploads. If you have access I would check the php.ini file for the upload limit.

 
rob
rob's picture

Joined: 2002-08-15
Posts: 22
Posted: Thu, 2002-08-15 19:57
Quote:
You might ask your ISP if they are limiting the uploads within PHP.

The <!-- BBCode Start --><A HREF="http://rob.com/ann/php.php" TARGET="_blank">php config</A><!-- BBCode End --> claims I can do 128Meg. and I've uploaded with another httpd and ftpd on this machine much more than 2k, but its quite possible (likely infact) that this apache/php combo can't http post more than 2k via any php app. I've just tried php/4.2.1 and another apache <!-- BBCode Start --><A HREF="http://rob.com:88/ann/php.php" TARGET="_blank">config</A><!-- BBCode End --> too with the same ~2k upload issue even with a more conservative 30Meg limit. Even the<!-- BBCode Start --><A HREF="http://rob.com/pix/php.txt" TARGET="_blank"> packet trace</A><!-- BBCode End --> looks normal.. I'm confused..

 
JoeJonsson

Joined: 2002-08-15
Posts: 3
Posted: Thu, 2002-08-15 21:21

Try to look at .htaccess

this is the values in my .htaccess (default values)

php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_flag magic_quotes_gpc off

... plus some other stuff, not relevant to your question...

goodluck

Johan

 
Iver_kl
Iver_kl's picture

Joined: 2007-10-05
Posts: 6
Posted: Sat, 2007-10-06 02:22

Before I am not very familiar with how php handles multiple large uploads or whether they all put in memory. So I tested 10 files with each 4-5 MB and kinda got frustrated how long it took to upload. I decided to use SFTP or SSH to upload the files and then use a web-based interface to put them in the database and in the directory they belong to.

 
Iver_kl
Iver_kl's picture

Joined: 2007-10-05
Posts: 6
Posted: Sat, 2007-10-06 02:26

I am also wondering of Windows versions of PHP is supposed to be chopping off the filename if magic_quotes_gpc is on, or is it supposed to return the full, escaped filename.