• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

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

Hi

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, )
0
Neil Thompson
Asked:
Neil Thompson
2 Solutions
 
glcumminsCommented:
You should use the function_exists() function to check:

if (function_exists('myFunction'))
{
   // Call myFunction
   $result = myFunction();
}
0
 
hernst42Commented:
0
 
Neil ThompsonSenior Systems DeveloperAuthor Commented:
Superb, damn easy when you ask the gurus!
Neil
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now