SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist mafunk's Avatar
    Join Date
    Apr 2003
    Location
    portland
    Posts
    441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Remedial PHP Question

    Hi Everyone,

    I'm determined to learn php so have signed up for online video training at vtc.com, and am using tutorials at php.net.

    Based upon what I learned so far (which isn't much 'cause I'm not too swift when it comes to programming stuff), I have installed foxserv.net to my C drive. FoxServ is an Apache / mySQL / PHP installer package for Windows and Linux platform. It's included PHP, Apache, MySQL, MyPHPAdmin and Zend Optimizer. The intallation seemed to go fine and all the stuff is now on my computer - I think.

    When I typed "http://localhost" into my browser I got a page that says "This site powered by foxserv." I figured that was OK and went on to the next step.

    I went to vtc.com and downloaded all of the tutorial files. One of them is totally simple and is called, "hello.php". I saved hello.php in the Apache folder on my C drive and tried to view it by typing "http://localhost/hello.php" When I did that I got a page that said, " We can't find "http://localhost/root/hello.php" and at the bottom of the page it said , "powered by comet web search." I did not build the php file (the tutorial did), so I know that there is nothing wrong with it. The tutorial said to save the file to my "web servers root directory." That's why I saved it in the Apache folder. Is that what they meant? Or was I suppose to save it elsewhere?

    Ok, so now I'm really confused. Here are the things that I don't understand:
    1) When I went to "http://localhost" and saw the "powered by foxserv" page I figured that it was a page on my system - not on the interet. That said, I figured that meant that I installed everything OK.

    2) Wen I went to "http://localhost/root/hellp.php" and it said "powered by comet web search" I figured that it was an external/web page that I had reached, which means that I didn't install things correctly.

    So points one and two above are telling me conflicting things. This tells me on thing that I'm sure of I DON'T KNOW WHAT THE HECK I'm DOING!

    Can anyone please offer very specific and basic guidance to a remedial php student on what is wrong here? How do I fix it? How do I use the stuff downloaded from Foxserv.net. A bunch of Apache files have extensions like ".dll .cnf and .var " Which programs do I open those in?

    Thanks
    MaFunk
    MaFunk

  2. #2
    Node mutilating coot timnz's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    516
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1) Sounds like it is installed fine.
    2) Put the hello.php in the htdocs folder. In a default Apache installation this will be inside the Apache folder where you currently have hello.php

    Then things should start to work hopefully.

    Good luck!
    Oh no! the coots are eating my nodes!

  3. #3
    SitePoint Evangelist mafunk's Avatar
    Join Date
    Apr 2003
    Location
    portland
    Posts
    441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the suggestion timnz.

    I put the file in the htdocs folder and am still getting the same not found message.

    Any more suggestions from timnz or anyone else?
    MaFunk

  4. #4
    SitePoint Evangelist mafunk's Avatar
    Join Date
    Apr 2003
    Location
    portland
    Posts
    441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Figured it out - yippeee!!!!

    All I had to do was to put it in the www folder.
    MaFunk

  5. #5
    Node mutilating coot timnz's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    516
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good to hear.
    Oh no! the coots are eating my nodes!


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
  •