Jump to content

Any way to edit php.ini remotely w/o root access?


jmh754

Recommended Posts

Hi, I am in need of a way to change php's upload_max_filesize setting even though I can't access the server's php.ini file.  I seem to remember doing this somehow in the past, though it was a while back and I can't remember if I'm making it up or not.  I'm also trying to get my hosting company to change it for me, but their online help ticket system is apparently broken, and access to their forums is pending...sigh.  Any help would be much appreciated.

Jason
Link to comment
Share on other sites

You might be able to use ini_set to temporarily ajust the the max upload size for your script only, like so:
[code]ini_set('upload_max_filesize', syze_in_bytes);[/code]
change size_in_bytes to the max file size you'll accept a file to be in bytes. For example 1048576 bytes will equal to 1MegaByte
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.