Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Installation

    Well it's going well so far and I assume it's installed. And anyway I'm following a tutorial on how based on a book which I trust. Anyways it says the easist way to test it is to use the phpinfo() fuction and make it "the root document in the htdocs subdirectory of your apache installation (I did install apache and it works fine). I would like to know where the htdocs subdirectory is and what is the best way to go about this. I don't want any screw ups basically. If anyone could help I'd appreciate it. Thanks

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Assuming you have installed this on a windows system then you should find the htdocs folder in the Apache folder. I generally don't use the default root folder Apache sets so I don't recall exactly where it is in there.

    As for testing using the phpinfo() function you can create a file such as test.php and then the only thing you need to put into that file would be:

    PHP Code:
    <?php
    phpinfo
    ();
    ?>
    And once you have everything running type into your browser:

    http://localhost/test.php assuming you named it test. And once again I don't recall exactly the default configuration of Apache so it might be

    http://localhost/htdocs/test.php

    If you are not wanting to learn how to install Apache/PHP/MySQL etc and you just want a development environment for testing your code then you might want to consider one of the many ready made development packages that have Apache/PHP/MySQL/Perl etc already bundled together and pre configured. All you need to do is install the bundle and it's all ready to go. Two I have used in the past are PHPDev which you can read more about in the sticky thread at the top of this forum and the other one is called IBServer which you can find with a quick search on google.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New Coder
    Join Date
    Apr 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks you've been a big help.

    Eric

  • #4
    Regular Coder
    Join Date
    May 2004
    Location
    sweden
    Posts
    236
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Eric go into the advanced section of IE (if you are using IE) and turn off friendly HTTP error messages. See if you are getting a code error. Code errors with this turned on come up as file not found or DNS errors.
    Carl McDade
    _____________
    Hiveminds Magazine
    for web publisher and community builders
    eRuby Tutorials

  • #5
    New Coder
    Join Date
    Apr 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and where exactly would this be?

  • #6
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Under:

    Tools > Internet Options > Advanced


  •  

    Posting Permissions

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