+ Reply to Thread
Results 1 to 6 of 6

Thread: What is php.ini and where can I find it???

  1. #1
    vasarias is offline New Bee
    Join Date
    Apr 2010
    Posts
    8
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What is php.ini and where can I find it???

    What is php.ini and where can I find it???

    See what I want to do-->
    http://codex.gallery2.org/Gallery2:F...e_or_two.29.3F

  2. #2
    Taras O. Guest

    Default

    Hello,

    php.ini file allows you to alter PHP configuration for scripts in the directory containing the file. It overrides values defined globally for the entire server. So, you need to create php.ini file in directory containing scripts which require those values set. The file should start with [PHP] and list of instructions after it. For example:

    [PHP]
    post_max_size = 12M
    upload_max_filesize = 12M
    In case you'd like to apply the settings you put into the php.ini file for entire website (or a major part of it) you can create .htaccess file with the line (replacing cpanel_username and /path/to/php.ini with actual directory names):

    SetEnv PHPRC /home/cpanel_username/path/to/php.ini
    When it is done, settings listed in php.ini will be applied to all files and subdirectories located in the directory containing this .htaccess file.

    Note: In the last case you can place the php.ini file wherever you wish. The determining factor in this case would be .htaccess file location.
    Last edited by Taras O.; 05-23-2010 at 05:49 PM.

  3. #3
    vasarias is offline New Bee
    Join Date
    Apr 2010
    Posts
    8
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you VERY VERY much...

  4. #4
    vasarias is offline New Bee
    Join Date
    Apr 2010
    Posts
    8
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    SOrry for Off topic...But javascript support my server??? Shared host

  5. #5
    Taras O. Guest

    Default

    Yes, sure. Javascript (applets) is being executed on cleint's side (i.e. in browser) as opposed to java (servlets) which code is executed by server software (it is not installed on shared servers) and browser obtains result only.

    In case javascript doesn't work for you, I'd suggest to check whether it is enabled in your browser and if it is, you should look into the javascript code.
    Last edited by Taras O.; 05-23-2010 at 05:55 PM.

  6. #6
    Emylee is offline New Bee
    Join Date
    May 2008
    Posts
    1
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! It helped me a lot and now I have my script up and running...

+ Reply to Thread

Posting Permissions

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