Knowledgebase: Programming Questions
How to get PHP/MySQL Information and Configuration
Posted by Tan Fang Wai (Import) on 04 November 2007 08:15 AM
For those who are programming and needs some information on their PHP and MY SQL versions and information, you can open a text editor, key in


// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

Save as say yourinfo.php and upload it to your WWW or public_html folder, you can then access http://yourowndomain.xxx/yourinfo.php to get a list of the configuration and information.

Once done, it is advisable to delete this file, more to err on the security side.
(622 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Resolve