is there a snippet to tell what version of php and mysql i have running on my server.
I want to display on a info page the version types. I dont want to do a phpinfo, i am just wondering if there is a snippet code for this.
Thanks
Hi,
the function
phpversion() returns the php version and mysql_get_server_info($link) returns the version of the MySQL server (but you need to connect to the server first).
Thomas
You can also get a info.php template (or may be phpinfo.php) that you place into the root folder. It will tell you the php version along with detailed configuration information.
Ryan