How do i find out using php if certain php functions are installed


I'm writing a php program that I'm going to release as open source, I'm used to developing just for my company and have full access to the servers and configs so if anything is needed it simply gets installed.

In my code, is there any way I can check if certain extensions are running and advise the user if not? (such as php_xmlrpc.dll php_mysql.dll, )
Neil ThompsonSenior Systems DeveloperAsked:
Who is Participating?
glcumminsConnect With a Mentor Commented:
You should use the function_exists() function to check:

if (function_exists('myFunction'))
   // Call myFunction
   $result = myFunction();
Neil ThompsonSenior Systems DeveloperAuthor Commented:
Superb, damn easy when you ask the gurus!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.