Jump to content

php.ini with godaddy hosting


SuperMach1

Recommended Posts

I have been working on an upload script lately and the max upload is 8mb.  I have found that you need to change the php.ini file.  Well with godaddy they dont give you access to this file.  Is there any alternatives to this?  I really need to get this change to a much larger number.

Thanks
Mach
Link to comment
Share on other sites

I was looking here http://us3.php.net/manual/en/function.ini-set.php and one guy said..

"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  :-[


Link to comment
Share on other sites

Well I dont know if that is correct or not, im in the dark here, not sure what is right or wrong.

I put this at the very top of my upload script
ini_set("post_max_size","200M");
ini_set("upload_max_filesize","200M");

It still didnt work
"The connection was reset
The connection to the server was reset while the page was loading."


Any suggestions?
Link to comment
Share on other sites

It is very rare for Shared hosting to allow you access to the php.ini file
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
Link to comment
Share on other sites

With the way Godaddy works, if you have a certain hosting plan you can create your own php.ini file.  I did that and got the sizes changed but now they keep timing out or something.

"This document contains no data."

I believe thats what it says when I test upload a largge file.

Am I missing something?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.