Jump to content

Recommended Posts

I've installed PHP but when I try to run a page in the browser I get a message to open the file or save it.  If you click open, it opens the page in Dreamweaver.

 

I went to a command line and ran php from there.  It worked.

 

I'm running Win 7

 

Any ideas what I did wrong?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/
Share on other sites

I disabled IIS. But when I run it under appache it just shows the source code.

 

<html>

<head>

<title>PHP Test</title>

</head>

<body>

<?php phpinfo(); ?>

</body>

</html>

 

As I said before, this works from a DOS prompt, but I can't get it to work in a browser.

 

PS.  I hate Win 7.  They've hidden everything.  I've set up sites from 2000 to 2008 and this is driving me nuts!

 

Thanks

 

I disabled IIS. But when I run it under appache it just shows the source code.

 

<html>

<head>

<title>PHP Test</title>

</head>

<body>

<?php phpinfo(); ?>

</body>

</html>

 

As I said before, this works from a DOS prompt, but I can't get it to work in a browser.

 

PS.  I hate Win 7.  They've hidden everything.  I've set up sites from 2000 to 2008 and this is driving me nuts!

 

Thanks

 

 

You have to tell Apache how to handle PHP files.

 

There's a lot of configuration involved. If you don't know what you're doing, just download XAMPP. XAMPP is a pre-configured WAMP (Windows Apache Mysql PHP) stack that works right out of the box, no configuration needed.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.