PHP Page Refuse to Display PHP content
| From: | Wei, Alice J. | Date: | Wed, 11 Jun 2008 17:43:58 +0000 |
| Subject: | PHP Page Refuse to Display PHP content | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-18968@lists.php.net to get a copy of this message | ||
Hi,
I am trying to install PHP so that I can connect to MS SQL from the PHP scripts.
I have successfully installed Apache and brings me back a good page with no errors, and tried to
create a php page in the usr/local/apache/htdocs folder. Here is the code of what is in this page:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<h1>PHP Test</h1>
<p><b>An example of PHP in Action</b><br /></p>
<? echo "Hello!";?>
</body>
</html>
The problem is that I do not see the execution of PHP anywhere on the HTML. I have set the
short_open_tag to off in the php.ini file, but I am not sure what could be the problem that I could
not see the execution of the PHP page.
Can anyone please tell me what might have gone wrong?
Thanks for your help.
Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
ajwei@indiana.edu