This is a discussion on php.ini variables within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Is there anyway of accessing to check the size of the upload_max_filesize and memory_limit variables from a script? TIA Damian -- ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there anyway of accessing to check the size of the
upload_max_filesize and memory_limit variables from a script? TIA Damian -- Damian Burrin UKRA 1159 Level 2 RSO EARS 1115 http://www.ukrocketry.com http://www.larf-rocketry.co.uk LARF - Putting the amateur back in rocketry!! |
|
|||
|
On Sat, 14 Oct 2006 13:02:40 GMT, "Damian Burrin" <D@D.com> wrote:
> Is there anyway of accessing to check the size of the >upload_max_filesize and memory_limit variables from a script? > >TIA >Damian you can find out about your php configuration with a built in function create a simple text file called phpinfo.php <? phpinfo(); ?> save upload the file then view it www.yoursite.com/phpinfo.php the next step. Read up on some tutorial on unix get putty ask your ISP for shell access name/password go to /etc/php.ini use vi editor to adjust your php.ini you may or may not have to reboot the server. This is the super simplified version, there is much more to learn when dealing with access the shell. You need to know what you are doing becuase you can easily muck things up pretty good if you don't know what you are doing |
|
|||
|
On Sat, 14 Oct 2006 13:02:40 GMT, "Damian Burrin" <D@D.com> wrote:
> Is there anyway of accessing to check the size of the >upload_max_filesize and memory_limit variables from a script? http://uk2.php.net/ini_get -- Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool |
|
|||
|
>http://uk2.php.net/ini_get
Thanks thats what i need. I've created a webmail portal for a work project and wanted to set the max upload size as a % of upload_max_size for portability. + the memory limit to work out the max size of all the attachmets + inline etc you can add. Thanks Damian -- Damian Burrin UKRA 1159 Level 2 RSO EARS 1115 http://www.ukrocketry.com http://www.larf-rocketry.co.uk LARF - Putting the amateur back in rocketry!! "Andy Hassall" <andy@andyh.co.uk> wrote in message news:9872j2lr7qjgle9g4t4qhbeubqlmr9div7@4ax.com... > On Sat, 14 Oct 2006 13:02:40 GMT, "Damian Burrin" <D@D.com> wrote: > >> Is there anyway of accessing to check the size of the >>upload_max_filesize and memory_limit variables from a script? > > http://uk2.php.net/ini_get > > -- > Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk > http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool |
|
|||
|
Hmm Damian Burrin <D@D.com> wrote:
> Is there anyway of accessing to check the size of the > upload_max_filesize and memory_limit variables from a script? ini_get -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl 2be || !2be $this => mysql_query(); |