rekha Posted February 12, 2008 Share Posted February 12, 2008 Hi Is it possible to disable magic constants in php? Regards Rekha http://hiox.org Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/ Share on other sites More sharing options...
rekha Posted February 21, 2008 Author Share Posted February 21, 2008 Hi Any answers???? Regards Rekha http://hiox.org Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-472621 Share on other sites More sharing options...
uniflare Posted February 21, 2008 Share Posted February 21, 2008 i dont know of any way. sorry. Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-472656 Share on other sites More sharing options...
rekha Posted February 22, 2008 Author Share Posted February 22, 2008 Hi Can anybody know this please answer me............. Regards Rekha http://hiox.org Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-473451 Share on other sites More sharing options...
vicodin Posted February 22, 2008 Share Posted February 22, 2008 Im sure there is in the PHP.ini ... search in google. Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-473456 Share on other sites More sharing options...
Daniel0 Posted February 22, 2008 Share Posted February 22, 2008 Why would you do that? Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-473494 Share on other sites More sharing options...
uniflare Posted February 22, 2008 Share Posted February 22, 2008 instead of disabling constants you should really work around them, what is the problem? as daniel0 pointed out... Why would you do that? , Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-473536 Share on other sites More sharing options...
rekha Posted February 25, 2008 Author Share Posted February 25, 2008 Hi I have searched in php.ini file as Vicodin said.But i couldn't able to find how to disable magic constants.Can anyone know is there any way to disable magic constants in php.ini file? Regards Rekha http://hiox.org Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-475700 Share on other sites More sharing options...
aschk Posted February 25, 2008 Share Posted February 25, 2008 These are written into the code and cannot be overridden. Why in gods good name would you want to anyway? Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-475709 Share on other sites More sharing options...
rekha Posted February 25, 2008 Author Share Posted February 25, 2008 Hi, Is there any way to change the configuration of php.ini file for disabling magic constants? Regards Rekha http://hiox.org Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-475713 Share on other sites More sharing options...
aschk Posted February 25, 2008 Share Posted February 25, 2008 Errr, ok. I'm pretty sure the answer has been given already but i'll reiterate it again just for you "No" Why do you want to do this? Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-475786 Share on other sites More sharing options...
Daniel0 Posted February 25, 2008 Share Posted February 25, 2008 The only way to do it is to modify the source of PHP and then compile the binaries yourself. Disabling them is pointless anyways. They don't pose any security threat if that's what you think. Quote Link to comment https://forums.phpfreaks.com/topic/90652-magic-constants-in-php/#findComment-475846 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.