Thursday, July 23, 2009

Set php.ini values into .htaccess file

How can i set php.ini configuration values into .htaccess file? Here is the simple solution to set php.ini variables into .htaccess file.

Syntax non flag variables.
php_value setting_name setting_value

Example :
php_value upload_max_filesize 10M

Syntax for flag variables such as (on/off).
php_flag [variable_name] [value]


Exmaple :
php_flag register_globals off

1 comment:

  1. Hello sir,
    Can u solve my problem ---
    http://www.sitename.com/five-star-hotels/abc.php/abc/

    not redirecting in 404 page.
    it's give a output : No input file specified.

    plz resolved this problem.
    Rakesh

    ReplyDelete