i follow one of the eg from internet, state that if i connect to local MySQL server, will obtained the following after running the PHP script:
5.0.2-alpha
localhost via TCP/IP
the script is as follows:
<?php
$con = mysql_connect('localhost');
print(mysql_get_server_info($con)."\n");
print(mysql_get_host_info($con)."\n");
mysql_close($con);
?>
i using notepad to key in and save the above script in document_root path "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" as test3.php and then from my internet browser, i key in http://localhost/test3.php, but it shows internal server error and can't open the page and can't show the expected outcomes.
Is it my way to run the script wrong?
And how i know that i am connect to local MySQL server?