Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    Overiding hosting's PHP.ini

    Uploaded a php.ini to my hosting server to override some of their setting for post_max_size. But I didn't want to upload my php.ini b/c I'm on a windows machine and the host is a linux machine. I didn't know how this would affect the PHP engine. So I uploaded a php.ini that only changed the post_max_size. But I noticed that since I didn't place upload_max_filesize it defaulted to 2M. I was thinking it would use whatever the HOST was using. So I added the following settings. What other settings should I explicitly set? Or should i just upload my php.ini file?

    php.ini
    Code:
    post_max_size = 25M
    upload_max_filesize =25M
    max_execution_time = 50000 
    memory_limit = 40M
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    If a directive is miising from the php.ini file then PHP will use built-in defaults for that directive (as can be seen in the php-ini-dist file).

    I would copy your hosts php.ini file and just change what you need to change.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    I will do that. Thanks
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #4
    New to the CF scene
    Join Date
    Feb 2007
    Location
    Lahore, Pakistan
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you dont need to override the php.ini file... you can set the size limit by .httacess file or in php as well..


  •  

    Posting Permissions

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