PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > trouble uploading more than 500 bytes...
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
trouble uploading more than 500 bytes...

Réponse
 
LinkBack Outils de la discussion
Vieux 12/10/2008, 04h31   #1
Karl St-Jacques
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut trouble uploading more than 500 bytes...

Hello,

I have trouble uploading files to a server. Actually I can't upload more than 500 bytes or so.

Here's a quick print_r of the $_FILES

[_FILES] => Array( [avatar] => Array ( [name] => index.html [type] => text/html [tmp_name] => /tmp/phpRbmXK5 [error] => 0 [size] => 505 ))
If I try bigger file (540 bytes or 2mb) it's simply return this.

[_FILES] => Array([avatar] => Array( [name] => ajax-loader.gif [type] => [tmp_name] => [error] => 3 [size] => 0)
)

error 3 is partial files sended. (By the way, there's no processing, only a print_r();

So here's my setup from the php.ini

PHP Version 5.2.4-2ubuntu5.3

max_execution_time 1000 1000
max_input_nesting_level 64 64
max_input_time 1000 1000
memory_limit 999M 999M
post_max_size 200M 200M
upload_max_filesize 200M 200M
upload_tmp_dir no value no value


I run Apache/2.2.8

I checked the /tmp folder. it's empty, even if uploading really big file, same for /var/tmp. the permission seems to be ok (chmod 777).

So, I'm pretty clueless about that one.
Anyone have any insight about this ?

Thanks,
Karl.

__________________________________________________ _______________


  Réponse avec citation
Vieux 12/10/2008, 11h29   #2
Ashley Sheridan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] trouble uploading more than 500 bytes...

On Sat, 2008-10-11 at 22:31 -0400, Karl St-Jacques wrote:
> Hello,
>
> I have trouble uploading files to a server. Actually I can't upload more than 500 bytes or so.
>
> Here's a quick print_r of the $_FILES
>
> [_FILES] => Array( [avatar] => Array ( [name] => index.html [type] => text/html [tmp_name] => /tmp/phpRbmXK5 [error] => 0 [size] => 505 ))
> If I try bigger file (540 bytes or 2mb) it's simply return this.
>
> [_FILES] => Array([avatar] => Array( [name] => ajax-loader.gif [type] => [tmp_name] => [error] => 3 [size] => 0)
> )
>
> error 3 is partial files sended. (By the way, there's no processing, only a print_r();
>
> So here's my setup from the php.ini
>
> PHP Version 5.2.4-2ubuntu5.3
>
> max_execution_time 1000 1000
> max_input_nesting_level 64 64
> max_input_time 1000 1000
> memory_limit 999M 999M
> post_max_size 200M 200M
> upload_max_filesize 200M 200M
> upload_tmp_dir no value no value
>
>
> I run Apache/2.2.8
>
> I checked the /tmp folder. it's empty, even if uploading really big file, same for /var/tmp. the permission seems to be ok (chmod 777).
>
> So, I'm pretty clueless about that one.
> Anyone have any insight about this ?
>
> Thanks,
> Karl.
>
> __________________________________________________ _______________
>

Bit of a silly question, but it's bit me in the ass before. Are you sure
you're editing the right php.ini file? I was working on a server at work
where someone had left 3 php.ini files, all in places that looked like
they were meant to be, and the only way to find the real one was through
a phpinfo() check. Also, have you restarted the web server (Apache or
IIS) since making the changes?


Ash
www.ashleysheridan.co.uk

  Réponse avec citation
Vieux 12/10/2008, 13h54   #3
Karl St-Jacques
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] trouble uploading more than 500 bytes...

> > Hello, > > > > I have trouble uploading files to a server. Actually Ican't upload more than 500 bytes or so.> > > > Here's a quick print_r of the $_FILES > > > > [_FILES] => Array( [avatar] => Array ( [name] => index.html [type] => text/html [tmp_name] => /tmp/phpRbmXK5 [error] =>0 [size] => 505 ))> > If I try bigger file (540 bytes or 2mb) it's simply return this. > > > > [_FILES] => Array([avatar] => Array( [name] =>ajax-loader.gif [type] => [tmp_name] => [error] => 3 [size] => 0)>> )> > > > error 3 is partial files sended. (By the way, there's no processing, only a print_r();> > > > So here's my setup from the php.ini> >> > PHP Version 5.2.4-2ubuntu5.3> > > > max_execution_time 1000 1000 > > max_input_nesting_level 64 64 > > max_input_time 1000 1000 > > memory_limit 999M 999M> > post_max_size 200M 200M> > upload_max_filesize 200M 200M> > upload_tmp_dir no value no value> > > > > > I run Apache/2.2.8> > > > I checked the /tmp folder. it's empty, even if uploading really big file, samefor /var/tmp. the permission seems to be ok (chmod 777).> > > > So, I'm pretty clueless about that one.> > Anyone have any insight about this ? > >> > Thanks, > > Karl.> > > > __________________________________________________ _______________> > > Bit of a silly question, but it's bit me in the ass before. Are you sure> you're editing the right php.ini file? I was working on a server at work> where someone had left 3 php.ini files, all in places that looked like> they were meant to be, and the only way to find the real one was through> a phpinfo() check. Also, have you restarted the web server (Apache or> IIS) since making the changes?> > > Ash> www.ashleysheridan.co.uk>
(Do you have rules or code of conduct for reply in this mailing list ?)

Yup, the setting I wrote was the setting I took directly from the phpinfo(); And I restarted apache more than enough for the next 2 years (even the server :| ).

I'm totally lost about that one !

Thank,
Karl
__________________________________________________ _______________


  Réponse avec citation
Vieux 12/10/2008, 14h58   #4
Ashley Sheridan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] trouble uploading more than 500 bytes...

On Sun, 2008-10-12 at 07:54 -0400, Karl St-Jacques wrote:
> > > Hello, > > > > I have trouble uploading files to a server. Actually Ican't upload more than 500 bytes or so.> > > > Here's a quick print_r of the $_FILES > > > > [_FILES] => Array( [avatar] => Array ( [name] => index.html [type] => text/html [tmp_name] => /tmp/phpRbmXK5 [error] =>0 [size] => 505 ))> > If I try bigger file (540 bytes or 2mb) it's simply return this. > > > > [_FILES] => Array([avatar] => Array( [name] =>ajax-loader.gif [type] => [tmp_name] => [error] => 3 [size] => 0)>> )> > > > error 3 is partial files sended. (By the way, there's no processing, only a print_r();> > > > So here's my setup from the php.ini> > > > PHP Version 5.2.4-2ubuntu5.3> > > > max_execution_time 1000 1000 > > max_input_nesting_level 64 64 > > max_input_time 1000 1000 > > memory_limit 999M 999M> > post_max_size 200M 200M> > upload_max_filesize 200M 200M> > upload_tmp_dir no value no value> > > > > > I run Apache/2.2.8> > > > I checked the/tmp folder. it's empty, even if uploading really big file, same for /var/tmp. the permission seems to be ok (chmod 777).> > > > So, I'm pretty clueless about that one.> > Anyone have any insight about this ? > > > > Thanks,> > Karl.> > > > __________________________________________________ _______________> > > Bit of a silly question, but it's bit me in the ass before. Are you sure> you're editing the right php.ini file? I was working on a server at work> where someone had left 3 php.ini files, all in places that looked like> they were meant to be, and the only way to find the real one was through> a phpinfo() check. Also, have you restarted the web server (Apache or> IIS) since making the changes?> > > Ash> www.ashleysheridan.co.uk>

> (Do you have rules or code of conduct for reply in this mailing list ?)
>
> Yup, the setting I wrote was the setting I took directly from the phpinfo(); And I restarted apache more than enough for the next 2 years (even the server :| ).
>
> I'm totally lost about that one !
>
> Thank,
> Karl
> __________________________________________________ _______________
>

No, not sure where the code of conduct is, but hang about for a while
and you should get the general idea

As for your problem, I had a quick look at the error code you're
getting, and it means that the file was only partially uploaded. Is the
file being changed on your local machine before it's being uploaded?
Also, try to see if you can test the same script with different
browsers, and if possible on a different server. That should isolate
where the problem is.


Ash
www.ashleysheridan.co.uk

  Réponse avec citation
Vieux 12/10/2008, 16h38   #5
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] trouble uploading more than 500 bytes...

On Sun, Oct 12, 2008 at 8:58 AM, Ashley Sheridan
<ash@ashleysheridan.co.uk> wrote:
>>

> No, not sure where the code of conduct is, but hang about for a while
> and you should get the general idea


Just the stuff at http://php.net/mailinglists.

--
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h40.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12726 seconds with 13 queries