Author Topic: Wampserver's index.php deleted  (Read 3935 times)

0 Members and 1 Guest are viewing this topic.

Offline lindenbridge612Topic starter

  • Irregular
  • Posts: 11
    • View Profile
Wampserver's index.php deleted
« on: January 23, 2009, 11:20:04 AM »
I have Wampserver installed on my PC, and I accidentally deleted index.php from the "www" directory folder, so when I turn on Wampserver and go to my localhost page, all I see is an "indexof" list of my folders instead of the old home page that has a link to phpmyadmin.  Is there any way to retrieve index.php without having to reinstall Wampserver (which would delete all the folders I have inside the "www" directory)?
« Last Edit: January 23, 2009, 11:22:08 AM by lindenbridge612 »

Offline haku

  • Guru
  • Freak!
  • *
  • Posts: 5,707
  • Old Man
    • View Profile
Re: Wampserver's index.php deleted
« Reply #1 on: January 24, 2009, 04:54:01 AM »
I'm attaching index.php from wampserver 2.0.

[attachment deleted by admin]

Offline lindenbridge612Topic starter

  • Irregular
  • Posts: 11
    • View Profile
Re: Wampserver's index.php deleted
« Reply #2 on: January 27, 2009, 04:39:57 PM »
 :D Thank You, so much!

Offline TDblog2012

  • Irregular
  • Posts: 1
    • View Profile
Re: Wampserver's index.php deleted
« Reply #3 on: March 17, 2010, 10:24:51 PM »
I, too, have Wampserver installed on my Windows desktop, and I accidentally deleted index.php from the "www" directory folder.  I downloaded the index.php supplied by the guru.  It works but there are a number of notices and deprecations.  I am running Apache 2.2.11 and PHP 5.30 supplied with the WampServer 2 release.  Would you please provide a more current index.php file?  Thank you, TDR

Offline oni-kun

  • Addict
  • Posts: 1,964
  • Gender: Male
  • When you're down, Logic can be a cure.
    • View Profile
    • oni-kun.com
Re: Wampserver's index.php deleted
« Reply #4 on: March 20, 2010, 04:49:51 AM »
I, too, have Wampserver installed on my Windows desktop, and I accidentally deleted index.php from the "www" directory folder.  I downloaded the index.php supplied by the guru.  It works but there are a number of notices and deprecations.  I am running Apache 2.2.11 and PHP 5.30 supplied with the WampServer 2 release.  Would you please provide a more current index.php file?  Thank you, TDR

What on earth do you need that file for? If you are unable to know which modules are installed (by simply calling phpinfo() then you should not really be programming.
PHP Documentation (Examples and Usage) || Posting code? [php] Code Here [/php]. (good ref: Truth Tables )
//If you wish a program to have inf args. $params is an array of them.
function($args) {
  if (
is_scalar($args)) {$params func_get_args();}
}

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: Wampserver's index.php deleted
« Reply #5 on: March 20, 2010, 05:46:40 AM »
Well, it is useful as a landing page...

Attached index.php from 2.0i I think..

[attachment deleted by admin]
NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading