LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2003, 04:04 PM   #1
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Rep: Reputation: 15
PHP/HTTP File upload problems...


I hope this is in the right spot.

I am using PHP pages to upload files to a document management system. I have set the files size to 100M and allowed uploads in the php.ini file.

Yet I still can not upload files over 1M. This system was working just fine until I upgraded to Redhat 9. I have tried changing the various options and of course to make sure reload xinetd and httpd. I even used restart on the services just to make sure.

Any thoughts?

Last edited by markstevens; 06-19-2003 at 10:15 AM.
 
Old 06-18-2003, 06:50 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Dunno about "Hile" uploads under PHP

You might want to check out what your maximum allowed runtime is for a script. The entire time that the file is being uploaded (hence being submitted and processed by the script) counts as runtime. Have a look for max_execution_time in your php.ini file.

Also, it would be worth increasing the error_reporting level to see if that gives you any hints.

HTH

Jamie...
 
Old 06-19-2003, 10:16 AM   #3
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks I'll up the error reporting and check that out...

Also the time...

I fixed the title...


UPDATE: Resolution Found

The problem was in /etc/php.d/php.conf file. There was a limit of 512k for php files. Well when the file was called for upload it became a part of the php file as it was passed for upload... this caused the page to stop. So I commented out that line and everything is fine now. I am not sure why there is a double restriction. There is already a limit to upload file size, memory usage size, and runtime... seems like overkill to me.

Thanks for the help... logging worked for me... it was the log that identified a size restriction I wasn't seeing and later found.

Last edited by markstevens; 06-19-2003 at 10:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Upload Files rabee77 Linux - Software 1 01-16-2005 05:26 AM
upload dir with php retrodict Programming 0 12-08-2004 02:52 AM
File upload in binary mode via HTTP saravanan1979 Programming 0 04-05-2002 01:48 AM
File upload via PHP saravanan1979 Programming 1 02-14-2002 04:28 AM
File upload via PHP!!! saravanan1979 Programming 0 02-14-2002 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration