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. Link to comment https://forums.phpfreaks.com/topic/76294-solved-new-php-user-help/ 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. Link to comment https://forums.phpfreaks.com/topic/76294-solved-new-php-user-help/#findComment-386197 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> Link to comment https://forums.phpfreaks.com/topic/76294-solved-new-php-user-help/#findComment-386199 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 ?> Link to comment https://forums.phpfreaks.com/topic/76294-solved-new-php-user-help/#findComment-386213 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! Link to comment https://forums.phpfreaks.com/topic/76294-solved-new-php-user-help/#findComment-386230 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. Link to comment https://forums.phpfreaks.com/topic/76294-solved-new-php-user-help/#findComment-386316 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.