For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2006 > php.ini variables









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php.ini variables
Damian Burrin

2006-10-14, 7:56 am

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


Gleep

2006-10-14, 6:56 pm

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

Andy Hassall

2006-10-14, 6:56 pm

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

2006-10-14, 6:56 pm

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



.:[ ikciu ]:.

2006-10-15, 3:56 am

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();


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com