[web] can't get PHP working

Started by
5 comments, last by namingway 16 years, 9 months ago
I recently installed PHP with the windows installer (the official one) and Apache, but none of my php code shows up! Apache appears to be working fine so what might the problem be!?
Advertisement
The excellent PHP documentation pretty much covers any issues you might have with running PHP on Apache. So either read the PHP documentation or download an all-in-one suite like XAMPP.
hmm its still not working here's my code(i hope thats what the problem is)
<html><head><title>PHP Stuff</title></head><body><?php "Hello World"; ?></body></html>
you need to add something that actually outputs that string after you enter php mode...

try <?php echo "Hello World"; ?>
Quote:you need to add something that actually outputs that string after you enter php mode...

try <?php echo "Hello World"; ?>


Or short for print...
<?="Hello World!"; ?>
I mean PHP also doesn't just magically start working once you download both the PHP plugin and apache. You need to go through the PHP manual and figure out how to set up apache to render PHP pages: there's some pretty simple config file stuff. Apologies if you've already done this, you just didn't mention doing anything of the sort.

-me
its all good now i left out echo or =. thanks guys :)

This topic is closed to new replies.

Advertisement