Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi,
i'm very well versed in PHP and have used it for many web applications. i recently wrote a small uploading script which works perfectly for most files. however, whenever i try and upload a larger file (like an mp3) the script fails after so long.
i *think* the script is limiting my upload to 2 megs and cutting me off after that. but i changed the value from 2M to 45M in the php.ini file and still the same error. the error exactly is that the PHP script thinks a file was uploaded, but can't find the data.
i'm thinking this has something to do with my system. apache is installed in /usr/local/apache and the conf files are all in apache/conf. however, the only php.ini file i could find on my system was in /etc/apache, which is not where my apache conf files are (though i did find some old ones in there). so perhaps PHP is loading defaults? i copied /etc/apache/php.ini to /usr/local/apache/conf/ but still no effects.
Call the phpinfo() function in a php file and you will see what settings are being picked up by php. There is a file size limit as well as a php timeout. You may be hitting the timeout while uploading the larger files.
crabboy, you're right... i hadn't thought of checking the phpinfo() function to see what the output would be. but despite making those changes to my php.ini file, my upload max is set to 2M, which is where i'm getting into trouble.
does anyone know how to change the php defaults? i tried putting my php.ini file in /etc/apache and /usr/local/apache/conf with no changes (restarted apache too). might i have to rebuild php?
Both have excellent support via mailing list and news groups. Post your PHP specifc question there, you'll stand a much metter change of getting the answer your looking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.