Log In · Register

 
 
Closed TopicStart new topic
Web Hosting, .html files?, please help !
nikx618
post Jul 30 2008, 12:01 AM
Post #1


asdfghjkl;
******

Group: Official Designer
Posts: 1,121
Joined: Jul 2008
Member No: 665,416



okay, so i made a file on notepad, and saved it as a .html file.
right?
inside the .html file, is it just content? or is it the whole website template too?
like, do i copy the template EVERY time, i make a .html file, with different content?

&after i loaded the .html file to cPanel on 000webhost.com
i tried to make a link like this
<p><a class="menu" href="root/layoutspage.html" target="_self">layouts</a><br />
&it does not work, it shows

***Error 404 - The Webpage cannot be found

Most likely causes:

* You clicked a link that can be outdated
* You are trying to access file that does not exists on server
* Domain you are trying to access is not configured on this server (website was removed or is not setup or DNS has not propagated yet).***


i mean, wtf is with that. i loaded the .html file to the root directory, and it says it cannot be found.

anyone please help?
i'm going crazy. xP

this is the site
http://subliminalgreen.net76.net/



thanks in advance[:
 
karmakiller
post Jul 30 2008, 12:20 AM
Post #2


DDR \\ I'm Dee :)
*******

Group: Mentor
Posts: 8,662
Joined: Mar 2006
Member No: 384,020



You mean copying the template as in the layout for you site and stuff? If you're using html, then you probably have to. Otherwise, you could use PHP Includes. And the template will be in one place where you can edit it, rather than having to copy it to every page that you create.

Have you tried using the whole URL, like:
CODE
<p><a href="http://subliminalgreen.net76.net/root/layoutspage.html" class="menu" target="_self">layouts</a></p>

 
nikx618
post Jul 30 2008, 12:25 AM
Post #3


asdfghjkl;
******

Group: Official Designer
Posts: 1,121
Joined: Jul 2008
Member No: 665,416



grrrr, i tried
http://subliminalgreen.net76.net/root/layoutspage.html
then
http://subliminalgreen.net76.net/layoutspage.html

both dont work.

&when i do save it and look again it changes it to
/root/layoutspage.html
&
/layoutspage.html


i am unfamiliar with PHP. X[
is there anyway i can learn, if so HOW, &WHERE?
here? lmfao. but, i mean i am so confused, i am wondering
how other people learned this stuff.

im just wondering why it wont show up after i loaded the
html file. ughhhhhhh
 
Smarmosaur
post Jul 30 2008, 01:05 PM
Post #4


AKA RockIt Studios
******

Group: Official Member
Posts: 2,286
Joined: Jun 2006
Member No: 421,809



yes, with HTML, you have to put the template in each page. to save some time srolling, you can make a seperate file named style.CSS, put your CSS in there (without style tags), and link it in each page, using this:
CODE
<link href="style.css" rel="stylesheet" type="text/css" />


note, you could also use some sort of frames (iframe would be your best bet, they're easier). frames are exactly as they sound, a frame. it lets you load a new "page" (which would be just a file with the content) in the selected area. it also cuts down on load time for your page.
you can find an iframe on the internet, or click here to go to the one here on CB.
 
nitrogoat
post Jul 30 2008, 01:45 PM
Post #5


Senior Member
***

Group: Member
Posts: 65
Joined: Jul 2008
Member No: 663,422



Ok I started learning website design from scratch as well.

Get out there and read read read tutorials- they'll boost your understanding and teach you a lot in a short time.

It's very hard for us to answer some of your questions because they really are fundamental aspects of web design.

I wouldn't start bothering yourself over PHP just yet. Dive headfirst into some HTML tutorials and grasp the basics then start learning how to mix in some CSS as well to get your pages looking funky.

There really are a wealth of tutorials out there, just use google and search.

I've written one as well- First website

Also, i started from your position as well and built my site from scratch with little to no help.
 
venti-anemoi
post Jul 30 2008, 02:30 PM
Post #6


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



So if you named your file layoutpage.html, then like it like so:

CODE
<a href="layoutpage.html">LAYOUTS</a>


You DO NOT, I repeat, DO NOT need "root/" or "/" before it. At least in my experience you don't.

I agree with nitrogoat; you don't want to be worrying about PHP or CSS when you're just starting out. Get a good grasp on the basics of HTML first.
 
Smarmosaur
post Jul 30 2008, 03:00 PM
Post #7


AKA RockIt Studios
******

Group: Official Member
Posts: 2,286
Joined: Jun 2006
Member No: 421,809



actually, 000webhost does only work with a / in front of it. pinch.gif or at least for me.
 
nikx618
post Jul 30 2008, 03:01 PM
Post #8


asdfghjkl;
******

Group: Official Designer
Posts: 1,121
Joined: Jul 2008
Member No: 665,416



thanks guys! im at the part where, look at this,

http://subliminalgreen.net76.net

every page is a PHP file, with the whole layout
in every single one of them
but with different content.
i know im probably doing it wrong,
but it still works okay right?


i understand and pretty much know html, &css stuff, mostly.
for like myspace. i know headers and images and links, and fonts.

but yeah, i think i get it, i just dont get how you can
avoid copying the layout every single time,
cause then youll have to edit ALL of them, if you edit one thing.
you know?

but that the only thing, i dont get ^
but, i ahve been saving the stuff as .php files instead of .html
&it seems to be working fine.
thanks for your guys' help[:

 
venti-anemoi
post Jul 30 2008, 03:02 PM
Post #9


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



Oh, really? Huh. That's kind of strange. Nevermind, then.

But Niko, I thought you got everything working already?
 
nikx618
post Jul 30 2008, 03:10 PM
Post #10


asdfghjkl;
******

Group: Official Designer
Posts: 1,121
Joined: Jul 2008
Member No: 665,416



yeeah, i got it. well, i dont GOT it. i mean, i get it.
lmfao, thanks EVERYONE for your help. [x


TOPIC RESOLVED, PLEASE CLOSE
or move to resolved?

biggrin.gif
 
manny-the-dino
post Jul 30 2008, 03:12 PM
Post #11


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed & Moved
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: