...

View Full Version : small php issue



marvc
07-23-2002, 01:55 AM
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

Spookster
07-23-2002, 02:08 AM
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
07-23-2002, 02:11 AM
Wow that was fast. lol boxer you must have moved it while I was still typing my reply. :thumbsup:

boxer_1
07-23-2002, 02:13 AM
Originally posted by Spookster
Wow that was fast. lol boxer you must have moved it while I was still typing my reply. :thumbsup:

lol...that's exactly what happened. Perfect timing :thumbsup: .



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum