Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-23-2002, 01:55 AM   PM User | #1
marvc
New Coder

 
Join Date: Jul 2002
Location: GA
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
marvc is an unknown quantity at this point
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...
marvc is offline   Reply With Quote
Old 07-23-2002, 02:08 AM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,224
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-23-2002, 02:11 AM   PM User | #3
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,224
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-23-2002, 02:13 AM   PM User | #4
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
Quote:
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?"
boxer_1 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:30 AM.


Advertisement
Log in to turn off these ads.