Farside Posted November 6, 2007 Share Posted November 6, 2007 hello all, First off i would like to apologize if this has been answered already. I have gotten apache and PHP installed into my Vista Box (What a pain!!!) and i have ran the php info script and everything works fine. But when i try to run a PHP script that has embedded HTML in it, everything just comes out blank. Even a simple Hello world script is blank. The title comes out fine but everything else i.e BODY is not coming out. Please help. Quote Link to comment Share on other sites More sharing options...
revraz Posted November 6, 2007 Share Posted November 6, 2007 Post your code and we'll look to see if the problem is there. Quote Link to comment Share on other sites More sharing options...
Farside Posted November 6, 2007 Author Share Posted November 6, 2007 Ok lets try this very simple one. This is located in my HTdocs folder under Apache. <HTML> <HEAD> <TITLE>My First PHP Script</TITLE> </HEAD> <BODY> <? echo "<p><em>Hello World! I'm using PHP!</em></p>"; ?> </BODY> </HTML> Quote Link to comment Share on other sites More sharing options...
atlanta Posted November 6, 2007 Share Posted November 6, 2007 maybe your short tags are off try doing <?php code here ?> Quote Link to comment Share on other sites More sharing options...
Farside Posted November 7, 2007 Author Share Posted November 7, 2007 wow that is wierd, But it worked. i guess short tags don't work on my box. Thanks! Quote Link to comment Share on other sites More sharing options...
revraz Posted November 7, 2007 Share Posted November 7, 2007 You have to enable them in the php.ini file. But it's best to just use <?php ?> because who knows how long short tags will be supported. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.