Jump to content

help with installation - creation file


gabrielkolbe

Recommended Posts

Hi, I have a website, which I want to install on 'clients' servers..the website run on PHP, MySQL. Firstly I want a page to check if PHP is installed, then MySQL, then smtp, gd, curl. Can I use the phpinfo(), ? I tried to use phpinfo() place it in a string and search the strings for certain values, but it does not seem to work.. does anyone have any ideas, or better any scripts I can just edit?

I would be greatful.

Link to comment
https://forums.phpfreaks.com/topic/119159-help-with-installation-creation-file/
Share on other sites

You will also have to check if the function is disabled.

 

function is_disabled($function) {
  $disabled_functions=explode(',',ini_get('disable_functions'));
  return in_array($function, $disabled_functions);
}

 

is_callable may do this for you, if you have a later version of PHP

http://php.net/manual/en/function.is-callable.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.