php.ini with godaddy hosting
Posted 02 September 2006 - 05:42 AM
Posted 02 September 2006 - 05:45 AM
Posted 02 September 2006 - 05:59 AM
"Many settings, although they do get set, have no influence in your script.... like upload_max_filesize will get set but uploaded files are already passed to your PHP script before the settings are changed.
Also other settings, set by ini_set(), may be to late because of this (post_max_size etc.).
beware, try settings thru php.ini or .htaccess."
Is this true? and I couldnt quite figure out how to make a php.ini file
Posted 02 September 2006 - 06:06 AM
Posted 02 September 2006 - 06:17 AM
I put this at the very top of my upload script
It still didnt work
"The connection was reset
The connection to the server was reset while the page was loading."
Posted 02 September 2006 - 09:55 AM
Look for .htaccess on google.
both those directives can be controlled via a .htaccess file
Don't teach men to program. Teach them to fish.
Please, try the RTFM solution before asking for help:
Posted 02 September 2006 - 05:30 PM
Posted 02 September 2006 - 05:44 PM
dont know if that helps or is a bad idear but i am assuming your host told you to do so, so do it.
((EMAIL CODE THAT WORKS))
((PAYPAL INTEGRATION THAT WORKS))
Posted 02 September 2006 - 07:27 PM
Simple reason being, the php.ini is set for all people on that server.
using MAX_UPLOAD_SIZE can set a max upload size, but the one set in php.ini comes first
so if php.ini is set to 8MB (standard) and you set MAX_UPLOAD_SIZE to 10MB
The limit is 8MB
Again, if php.ini is set to 8MB, and you set MAX_UPLOAD_SIZE to 4.
Then the max upload size is 4
Posted 03 September 2006 - 05:05 AM
"This document contains no data."
I believe thats what it says when I test upload a largge file.
Am I missing something?
Posted 03 September 2006 - 12:13 PM
in the php_ini file, you have a set time that a script will execute before dying
Posted 03 September 2006 - 08:22 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users