SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP pages won't load on my local machine

    I purchased Kevin Yank's insightful book and followed the instructions for installing PHP and MySQL on my local machine so that I could test my web pages before publishing them. However, when I try to open a .php page, a dialog box appears that asks me to either "open" "save" or "cancel"... when I click "open" an IE window pops up, then disappears and the same "open" "save" "cancel" window appears. I am running Windows XP Professional SP2 with IIS installed and running. Please help!

  2. #2
    SitePoint Zealot t0WL337's Avatar
    Join Date
    Mar 2007
    Location
    Ottawa, Ontario!
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah a most annoying experience, that I have had in the past. A common problem is mysql.

    Try running this simple script.
    PHP Code:
    <?php phpinfo(); ?>
    Does the problem happen when you run that?
    <3php && SitePoint ?>

  3. #3
    SitePoint Member
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yeah...

    I created a new file named it "test.php" and put in the code you said above. When I tried to open it, I got the same message.

  4. #4
    SitePoint Addict
    Join Date
    Oct 2006
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not a Windows person but my guess is that your web server is not executing PHP files and instead is passing them to your browser. Since your browser doesn't know how to process a PHP file, it presents you with the Open/Save/Cancel dialog box.

    Maybe this will point you in the correct direction...
    mikem

  5. #5
    SitePoint Zealot t0WL337's Avatar
    Join Date
    Mar 2007
    Location
    Ottawa, Ontario!
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are trying to have a test server on your local machine check out. www.wampserver.com/en
    <3php && SitePoint ?>

  6. #6
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When I was writing PHP on my win32 machine, I always used phpdev, it only takes a few minutes to setup and I've never had any problems with it.
    Blog
    PHP, ruby, web design and photography.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •