Maze Posted June 12, 2014 Share Posted June 12, 2014 how can i check if i have PHP SimpleXML on the opensuseis there a command that i can use in terminal Quote Link to comment https://forums.phpfreaks.com/topic/289127-php-simplexml-how-to-check-the-existence/ Share on other sites More sharing options...
Ch0cu3r Posted June 12, 2014 Share Posted June 12, 2014 You can run phpinfo in a php script. If you find a SimpleXML heading then it is enabled. Quote Link to comment https://forums.phpfreaks.com/topic/289127-php-simplexml-how-to-check-the-existence/#findComment-1482543 Share on other sites More sharing options...
requinix Posted June 12, 2014 Share Posted June 12, 2014 There's also b) Since SimpleXML is technically an extension, php -m on the command line to list all extensions, or c) extension_loaded in your code d) class_exists for the SimpleXMLElement class Quote Link to comment https://forums.phpfreaks.com/topic/289127-php-simplexml-how-to-check-the-existence/#findComment-1482549 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.