php.ini variables

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


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-14-2006
Damian Burrin
 
Posts: n/a
Default php.ini variables

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


Reply With Quote
  #2 (permalink)  
Old 10-14-2006
Gleep
 
Posts: n/a
Default Re: php.ini variables

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

Reply With Quote
  #3 (permalink)  
Old 10-14-2006
Andy Hassall
 
Posts: n/a
Default Re: php.ini variables

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
Reply With Quote
  #4 (permalink)  
Old 10-14-2006
Damian Burrin
 
Posts: n/a
Default Re: php.ini variables

>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



Reply With Quote
  #5 (permalink)  
Old 10-15-2006
.:[ ikciu ]:.
 
Posts: n/a
Default Re: php.ini variables

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0