Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Location
    London
    Posts
    65

    Question Emulating php.ini

    Hi everyone,
    Just wanted a little help emulating my php.ini on my reseller server as i have installed some scripts but need to change some things in my php.ini file but i don't have direct access to it.

    So i was told that i can emulate it in a sub directory.

    I need to change register_globals and upload size can anyone help please.

    Thanks

    Rockyuk

  2. #2
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,099
    See this entry in the PHP manual
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

  3. #3
    You can also change the upload size in the .htaccess with :

    php_value upload_max_filesize "15m"

    I don't know if you can change the register_global with that way....but a little lookup into google will tell you.

  4. #4
    Join Date
    Feb 2005
    Location
    London
    Posts
    65

    * Thankyou

    Hi guys,
    Thankyou for you response, to be honest i am not to clued up on how to do any of what you have all suggested could someone post an example of how to do it please.

    Thanks

    Rockyuk

  5. #5
    Perhaps too late to help but you can put a line in an .htaccess file as follows:

    # to turn off register_globals
    php_value register_globals 0

    Put this in your root folder and it will affect your entire site.
    ------------
    Tim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •