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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.