Config php.ini

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manigandan
    New Member
    • Jul 2006
    • 1

    Config php.ini

    I am new to PHP Development , i want to know How to config the php.ini file(not locally), PLEASE URGENT
  • lephap99
    New Member
    • Jul 2006
    • 2

    #2
    If you have a server, then you can do it.
    But if you have a hosting. You can not config file php.ini.
    Good luck

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Hi there,

      some hosting company do allow you to config the .ini file by placing the file in your document root.. if you are hosting your site with a third-party hosting company then you should check with them.. good luck my fren.. :)

      Comment

      • rickshaw
        New Member
        • Jul 2006
        • 1

        #4
        I'm having a very similar problem.

        The program I'm installing says to do this:

        PHP 4.3.10 or higher with the following set in php.ini file:
        -The max_input_time directive set to a value of at least 30
        -The post_max_size and upload_max_file size directives set to the size of the largest attachments yu wish to be able to upload.
        -The memory_limit directive set to at least 8M
        -The max_execution_t ime directive set to at least 15
        -The register_global s directive set to Off
        -Safe mode disabled, or PHP suExec enabled
        - - - -

        When I asked my Hosting company where is the php.ini ? They said this:
        I could creat a php.ini in my Parent directory. And specific php.ini options can be used by your PHP scripts by placing an .htaccess file in the directory that contains the php script with a path to a php.ini.

        The .htaccess file will need to contain the line
        " suPHP_ConfigPat h /home/domains/example.tld/web/ "

        This will load a file named php.ini (from the web directory), which should contain all the options you want.

        Ok, I added the .htaccess to my Parent directory with the line they suggest.
        Exactly like this, but with my domain name.

        suPHP_ConfigPat h /home/domains/example.tld/web/

        Also, I have a php.ini file now in my Parent directory. But "exactly" what do I now put in the php.ini file to make it function??

        Thanks for your advice.

        -Rick

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Have a look at the Apache/PHP/MySql mini-tutorials. Adapting your PHP.INI depends on the version you are using. So see link

          http://minitutorials.c om/apache/apacheindex.sht ml

          Ronald :cool:

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            Just to let you know that there is another site I just passed by and solely dedicated to PHP.INI
            http://www.ilovejackda niels.com/php-ini-guide/

            Ronald :cool:

            Comment

            Working...