Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting Your Website
#1
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
[Image: chaosthegreat.png]
Reply
#2
Bump for website starters.
[Image: chaosthegreat.png]
Reply
#3
Ummm...


._.
[Image: finn_flag.gif]
Reply
#4
Actually it's easier just to use a style sheet and than put it in the header file.

Code:
<html>
<head>
<link rel="stylesheet" href="linktocssstylesheet" type="text/css">
</head>
<body>


Big Grin
Reply
#5
I think Kyle needs some help...
[Image: chaosthegreat.png]
Reply
#6
(07-11-2011, 02:58 AM)Chaos Wrote: I think Kyle needs some help...

True.
[Image: TehPwner9001.png] [Image: 76561198041259354.png]
Reply
#7
I dun understand that scripting stuff. D:
[Image: finn_flag.gif]
Reply
#8
Well, I'm scripting in PHP not Lua...

But otherwise that's as simple as is gets besides:

[lua]
<?php
echo "Hi Kyle";
?>[/lua]
[Image: chaosthegreat.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)