Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 8,079
» Latest member: seanac11
» Forum threads: 10,350
» Forum posts: 91,276
Full Statistics
|
Online Users |
There are currently 240 online users. » 0 Member(s) | 238 Guest(s) Bing, Google
|
Latest Threads |
I'm leaving the site too....
Forum: 2DWorlds Discussion
Last Post: Jacob_
07-03-2023, 04:59 AM
» Replies: 12
» Views: 6,414
|
hi there.
Forum: 2DWorlds Discussion
Last Post: Jacob_
01-03-2020, 04:30 AM
» Replies: 1
» Views: 775
|
obroke
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 10:11 AM
» Replies: 0
» Views: 20,546
|
fcouldn't
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 09:02 AM
» Replies: 0
» Views: 8,256
|
qhow
Forum: Current Games
Last Post: PhilipShums
09-06-2017, 07:25 AM
» Replies: 0
» Views: 2,141
|
zstone
Forum: Current Games
Last Post: TimothyTox
09-06-2017, 07:03 AM
» Replies: 0
» Views: 1,010
|
vbit
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 03:00 AM
» Replies: 0
» Views: 985
|
sildenafil 100 mg sandoz
Forum: Current Games
Last Post: RichardLen
09-06-2017, 12:28 AM
» Replies: 0
» Views: 1,203
|
mhis
Forum: Current Games
Last Post: TimothyTox
09-05-2017, 04:09 PM
» Replies: 0
» Views: 1,009
|
sildenafil citrate 100mg ...
Forum: Current Games
Last Post: Waltertog
09-05-2017, 12:27 PM
» Replies: 0
» Views: 964
|
|
|
Starting Your Website |
Posted by: Chaos - 07-06-2011, 10:28 PM - Forum: Programming
- Replies (7)
|
 |
First off: use 000webhost.com. They have all you need to start off.
Now, I'm not going to truly show you how to code it, but this is what you will need to actually start the website.
First go open up your notepad (or any other like ConText) and start a file called index.php.
It has to be index.php because when you go to the website you just made, it says Index of /. That pretty much means you need an index.php file.
Now, This is how your index.php file should say:
[lua]
<?php
include("header.php");
//content here
include("footer.php");
?>
[/lua]
Now, As you can see if you can read, I used header.php and footer.php. We will make those in a minute, but let me explain:
Header.php is well, the head of your site and the thing you will need to use to link your css to EVERY page of your website.
Footer.php is just the bottom of your website and is needed, but not as important.
Header.php:
[lua]
<html>
<head>
</head>
<body>
[/lua]
Footer.php:
[lua]
</body>
</html>
[/lua]
Do you understand why footer.php has closed tags? Because in index.php they will eventually be merged.
Once you have that, upload them to you site in the public_html folder (if you are using 000webhost), and you will have the start of your website.
Next learn CSS and add that to index.php in the '//content here' line.
Enjoy,
Chaos
|
|
|
|