Solved

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

Posted on 2008-06-25
3
183 Views
Last Modified: 2010-04-21
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
Comment
Question by:NeilT
3 Comments
 
LVL 24

Accepted Solution

by:
glcummins earned 400 total points
ID: 21869578
You should use the function_exists() function to check:

if (function_exists('myFunction'))
{
   // Call myFunction
   $result = myFunction();
}
0
 
LVL 48

Assisted Solution

by:hernst42
hernst42 earned 100 total points
ID: 21869609
0
 
LVL 3

Author Closing Comment

by:NeilT
ID: 31470747
Superb, damn easy when you ask the gurus!
Neil
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now