Re: upload problems
| From: | Philip Olson | Date: | Mon, 07 Apr 2003 15:28:18 +0000 |
| Subject: | Re: upload problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142704@lists.php.net to get a copy of this message | ||
> >>Just add the symptoms here.
> >>
> >>Since I have been mess with many different ways now, there are two main
> >>themes of complaits from the server. One is "the document contains no
> >>data". The other is that I could upload test files, but not images, or
> >>images will get choped at different position of the image. I got quite
> >>confused as to not knowing which is due to my coding error, which is due
> >>to the upgrading. I'm quite sure it is related to upgrading. Or am I sure?
> >>
> >>
> >
> >Look at this file (or one like it):
> >
> > /etc/httpd/conf.d/php.conf
> >
> >Note the settings, I believe RedHat has altered some
> >file upload settings in here. Silly RedHat...
> >
> >Regards,
> >Philip
> >
> >
> >
> I don't have a clue as to what do they mean, though. (pasted below)
>
> ***********************************************************
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
>
> LoadModule php4_module modules/libphp4.so
>
> #
> # Cause the PHP interpreter handle files with a .php extension.
> #
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> LimitRequestBody 524288
> </Files>
>
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
>
> ********************************************
>
> The LimitRequestBody line is a limit of upload file size or what?
> Do you know any explanation anywhere? ;)
Yes, it affects file uploads.
http://www.google.com/search?q=limitrequestbody
Regards,
Philip