Jump to content
  • Advertisement
Sign in to follow this  
namingway

[web] can't get PHP working

This topic is 4027 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites
you need to add something that actually outputs that string after you enter php mode...

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

Share this post


Link to post
Share on other sites
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!"; ?>

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!