Sign in to follow this  

[web] can't get PHP working

This topic is 3813 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
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
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

This topic is 3813 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this