SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Localhost - PHP NOT WORKING

    Hi all . . .
    I have used WAMP5 to install Apache, PHP, MySQL.
    During installation, I specified the folder to be used as the root. I am using "C:\www" with WAMP installed at "C:\wamp".
    When I browse to the pages in the browser, I can see them fine, as they should be. But the problem is all of my PHP code is not being processed.

    I have used an include, and all the text from the include is just being rendered as text on the page????

    The page works fine when I upload it, just not on local host. Does anyone have any ideas as to what the problem could be?

    I presume it is just some wrong configuration?

    Cheers
    D

  2. #2
    SitePoint Addict
    Join Date
    Oct 2004
    Location
    Brooklyn, NY
    Posts
    359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP is a server-side technology - it's meant to be interpreted by a web server, not a browser.

    (Make sure your URLs start with http:, not file:.)
    Chris Shiflett
    http://shiflett.org/

  3. #3
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep url: http://localhost/Daveshead/Site/home.php
    Any ways, I got it all sorted now, I just re-installed everything individually.

  4. #4
    SitePoint Evangelist
    Join Date
    Sep 2004
    Location
    Oregon
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is Apache Turned on? :]

  5. #5
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, everything was on . . . . but all sorted now


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
  •