how to create index.php file

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
nicku
Forum Newbie
Posts: 2
Joined: Wed Apr 01, 2009 5:47 pm

how to create index.php file

Post by nicku »

Hi, am currently new to php and i want to build a simple system, i have been looking over the internet and i realise that the index.php file seems to be the sceleton/base of te web page + database. my question is:how do u start building a index.php file and wat needs to be included? any help would be appriciated!

thnx! :)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: how to create index.php file

Post by califdon »

The only thing special about an index.php file is that most web servers are configured to send that file when no other file is specified. In other words, it's the default file for a domain or within a directory. Aside from that, there's absolutely no commonality among files of that name. Make it anything you want visitors to see when they come to your domain.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: how to create index.php file

Post by josh »

A lot of frameworks work by putting an index.php in the document root of the webserver, which is called the frontController
http://java.sun.com/blueprints/corej2ee ... oller.html
nicku
Forum Newbie
Posts: 2
Joined: Wed Apr 01, 2009 5:47 pm

Re: how to create index.php file

Post by nicku »

thanx for the info guys, but am still comfused.i have downloaded the xampp apllication on my usb and am running the database and the web page from my usb, to test if it works i created a simple file with hello message(typical) but it comes up with the 404 error message?!
Faizimrd
Forum Newbie
Posts: 2
Joined: Thu Apr 02, 2009 4:07 am
Location: Pakistan.
Contact:

Re: try it.Faizimrd [how to create index.php file]

Post by Faizimrd »

hello everybody i m also new to the php and i m also trying to make my 1st welcome page or i.e
index.php but invain. i have downloaded "WAMP" but code is not working.\
i think we should use "phpdesingner" software.
thanks and reply if any body can help me.

http://www.al-faizan.comze.com
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: try it.Faizimrd [how to create index.php file]

Post by josh »

Faizimrd wrote:http://www.al-faizan.comze.com My Hobbies are To Play Different Computer Games and the Most Important Hobby is
to Find out the Masteries of the Hacking Material,
Here's a tip, if you want people to help you don't tell them you're going to misuse the information first.
Faizimrd
Forum Newbie
Posts: 2
Joined: Thu Apr 02, 2009 4:07 am
Location: Pakistan.
Contact:

Re: how to create index.php file

Post by Faizimrd »

ok ok
Post Reply