XAMPP not running PHP?

Joe

New member
Hey i recently installed XAMPP for windows. It installed fine. But for some reason it will not run PHP.

E.g. index.php

<?
echo"<title>Hello</title>";
echo"Hello";
?>

Returns:

Hello"; echo"Hello"; ?>

It is so annoying. I had it working before on another computer and now it dosn't work. Although i do remeber the last install did not have the shell in the installation.

Any help?

Returns a blank page
Lol i am such an idiot how can i forget that! Cheers mate!
Lol my whole script is written as <? that maybe why. i am changing all of them to <?php .. long...
That is very odd because it should still work as <? owell.,
 
Try to invoke the proper use of echo as well. echo "string"/output will not always work under all conditions. It's just better coding practice.


<?php

echo( "<title>Hello</title>" );
echo( "Hello" );

?>
 
A PHP script should start with <?php, not just <?.

I'm not sure if that's going to fix your problem though. But start with that; baby steps... :-)
 
Back
Top