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 4 of 4

Thread: small php issue

  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    GA
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question small php issue

    is it possible to obtain or locate another copy of the index.php file without having to re-install or re-configure php? I attempted to unsuccessfully install XMB onto my w2k server running apache, mysql, and php, and somehow deleted the wrong index file. In other words I totally removed it from the system.
    My problem is that my default web page, which used to be the phpinfo.php page, only shows Index of / and a list of files in my www root folder. I'd like for fix that, which I think the index.php file will do.
    Is this possible, or will I have to re configure php or go without it?

    any response is appreciated
    Just Do It...

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Did you install php individually or did it come in some package with apache and mysql?

    I ask that because we won't know what you had in your original index.php page as it could be different depending on what you downloaded and installed.

    If all you want is the phpinfo to show up in your index page then simply use a text editor and create a page named index.php and place this coding in it:

    <?php
    phpinfo();
    ?>

    Don't put any other html in it as it will generate all of that by itself with the phpinfo function.

    On another note this really belongs in the PHP forum. I'm sure someone will be along to move this.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Wow that was fast. lol boxer you must have moved it while I was still typing my reply.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Spookster
    Wow that was fast. lol boxer you must have moved it while I was still typing my reply.
    lol...that's exactly what happened. Perfect timing .
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"


  •  

    Posting Permissions

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