12-9-2008, 05:20 PM | #1 |
FFR Veteran
|
I Need Serious Help..
So... i don't know how to start off... but i am making a website.. and i am learning HTML/PHP..etc... and i wanted to add a little PHP script.. a little clock... to make it appear on my Homepage... but where do i put my <?Php ?> code.... when i put it in the HTML.. nothing happens.... the code is intact.. if i have to create a new file in my root directory, clock.php .. okay?...and then?? how the hell can i insert a php code on a html page.... im depressed..
Btw sorry for my english <3
__________________
|
12-9-2008, 05:40 PM | #2 |
Not your typical member
|
Re: I Need Serious Help..
anchors my friend! uh let me whip up a little example, say the code is stored in the code directory so it's ../code/clock.php (the dots represent everything before the directory you'll need to put everything in there though)
<html> <body> blah diddy blah blah i like to ramble in code here's a little clock <A href="../code/clock.php"> </A> read up here about anchoring on webpages http://www.w3.org/TR/REC-html40/stru...ks.html#h-12.1 |
12-9-2008, 05:45 PM | #3 | ||
FFR Player
Join Date: Nov 2005
Age: 33
Posts: 853
|
Re: I Need Serious Help..
I...came...into...this...thread...to...say...that...you...do...need... some...serious...help...but...then...I...had...to...mock...your...excessive... use...of...ellipses
... also Quote:
Quote:
In all seriousness, you're being terribly vague. "i put the php in the html and i didn't work halp me" That's so descriptive. Good to know you didn't print out the PHP and tape it to your computer or something. Also, google. Here's one decent looking result: http://www.tizag.com/phpT/index.php
__________________
www.freerice.com |
||
12-9-2008, 08:05 PM | #4 |
FFR Player
Join Date: Oct 2006
Location: Nesoi, Olympus System
Posts: 2,644
|
Re: I Need Serious Help..
http://www.google.com
http://www.w3schools.com/ http://www.html.net/ http://www.lynda.com/ etc. etc. etc. FFR =! Tech Support.
__________________
. Originally Posted by jewpinthethird[link]: "If you get stung by enough bees you turn into a bee, because the venom gets into the blood stream which spreads bee DNA throughout your entire body... changing your genetic structure into a bee's. Every year roughly 125 people in America are turned into bees this way." Originally Posted by MrRubix[link]: "Do you basically bukkake-paint your walls every time you jack it?" Originally Posted by All_That_Chaz[link]: "My pity-sex depreciates at a rate of 5% annually." |
12-9-2008, 08:10 PM | #5 |
Not your typical member
|
Re: I Need Serious Help..
how's the php working for you gib?
|
12-12-2008, 12:56 PM | #6 |
FFR Player
|
Re: I Need Serious Help..
Your first mistake was coming to FFR forums for serious help.
Let alone in chit chat.
__________________
|
12-12-2008, 05:28 PM | #7 |
FFR Player
Join Date: Aug 2007
Age: 31
Posts: 8,548
|
Re: I Need Serious Help..
I use this when i need help or i ask my brother, if you wanna talk to him and see if he can help you can pm me.
Link: http://www.w3schools.com/html/html_intro.asp |
12-14-2008, 11:23 PM | #8 |
HAVE ME WITH VODKA
Join Date: Aug 2005
Location: Long Island, New York
Age: 35
Posts: 7,316
|
Re: I Need Serious Help..
If you want to add php to an html page, all you need to do is to start a <?php tag inside of the html body. Like so:
<HTML> <head> <title>my page</title> </head> <body> <?php php code goes here ?> </body> </HTML> and of course, the page has to have a .php extension or php code won't be translated. Last edited by Sprite-; 12-14-2008 at 11:27 PM.. |
12-15-2008, 08:24 AM | #9 |
FFR Player
Join Date: Sep 2005
Age: 32
Posts: 4,245
|
Re: I Need Serious Help..
Also if you want to do pretty much everything easier I'm finding another torrent for Dreamweaver/Fireworks CS3 again today so if you want it add me on a messenger. TBH making websites in notepad is a pain, Dreamweaver makes it so wonderfully easy.
|
12-15-2008, 10:07 AM | #10 |
FFR Player
|
Re: I Need Serious Help..
Many problems could be happening:
1) The server could not be interpreting PHP, in which case you have to find somewhere else to host your website. 2) The page needs to end in .php 3) What sprite said.
__________________
C is for Charisma, it's why people think I'm great! I make my friends all laugh and smile and never want to hate! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|