apache - htaccess turn on php flags if certain IP address -


मेरी .htaccess फ़ाइल में मुझे निम्नलिखित को चालू करना होगा:

  php_flag display_errors On Php_value error_reporting 2147483647  

हालांकि मैं केवल यह करना चाहता हूं अगर मेरी आईपी साइट पर जा रही है।

कोई विचार?

कुछ ऐसा है .. ।

  यदि (आईपी == "xxxx") {php_flag display_errors php_value पर त्रुटि त्रुटि रिपोर्ट 2147483647}  

ऐसा करने की आवश्यकता PHP में नहीं। धन्यवाद!

httpd कॉन्फ़िगरेशन में ऐसा करने का कोई आसान तरीका नहीं है इसके बजाय एक स्क्रिप्ट का उपयोग करने पर विचार करें।


Comments

Popular posts from this blog

php - Login to icq account to receive messages from contact #12345678 -

windows - Heroku throws SQLITE3 Read only exception -

string - javascript - switch not working -