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
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.