Use .htaccess to set PHP flag

| | Comments (0)

若是在 share hosting 的環境或是沒有權限去設定 php.ini 的參數,
可以透過 .htaccess 來設定 local value
例:
php_flag register_globals off
php_flag magic_quotes_gpc on

ref. php_flag in .htaccess

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on March 30, 2008 5:50 PM.

Postfix 551 User not local; please try was the previous entry in this blog.

Show Script in RPM is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.