Go Back   Flash Flash Revolution > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 12-9-2008, 05:20 PM   #1
Gibson63
FFR Veteran
FFR Veteran
 
Gibson63's Avatar
 
Join Date: Jan 2007
Location: Canada,Quebec
Age: 32
Posts: 1,319
Send a message via MSN to Gibson63
Default 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
__________________


Gibson63 is offline   Reply With Quote
Old 12-9-2008, 05:40 PM   #2
Red_Comet
Not your typical member
FFR Veteran
 
Red_Comet's Avatar
 
Join Date: Jan 2003
Location: in my Freightliner Century class
Age: 35
Posts: 341
Send a message via AIM to Red_Comet Send a message via MSN to Red_Comet Send a message via Skype™ to Red_Comet
Default 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
Red_Comet is offline   Reply With Quote
Old 12-9-2008, 05:45 PM   #3
Necamus
FFR Player
 
Necamus's Avatar
 
Join Date: Nov 2005
Age: 33
Posts: 853
Default 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:
im depressed
hahahahahaha

Quote:
the code is intact
good to know it didn't fall apart

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
Necamus is offline   Reply With Quote
Old 12-9-2008, 08:05 PM   #4
OrganisM
FFR Player
 
OrganisM's Avatar
 
Join Date: Oct 2006
Location: Nesoi, Olympus System
Posts: 2,644
Default 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."
OrganisM is offline   Reply With Quote
Old 12-9-2008, 08:10 PM   #5
Red_Comet
Not your typical member
FFR Veteran
 
Red_Comet's Avatar
 
Join Date: Jan 2003
Location: in my Freightliner Century class
Age: 35
Posts: 341
Send a message via AIM to Red_Comet Send a message via MSN to Red_Comet Send a message via Skype™ to Red_Comet
Default Re: I Need Serious Help..

how's the php working for you gib?
Red_Comet is offline   Reply With Quote
Old 12-12-2008, 12:56 PM   #6
dancingmaniac3
FFR Player
 
Join Date: Nov 2003
Location: San Antonio...where tortilla is pronounced right.
Posts: 1,873
Send a message via AIM to dancingmaniac3
Default Re: I Need Serious Help..

Your first mistake was coming to FFR forums for serious help.

Let alone in chit chat.
__________________
dancingmaniac3 is offline   Reply With Quote
Old 12-12-2008, 05:28 PM   #7
Xx{Midnight}xX
FFR Player
 
Join Date: Aug 2007
Age: 31
Posts: 8,548
Default 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
Xx{Midnight}xX is offline   Reply With Quote
Old 12-14-2008, 11:23 PM   #8
Sprite-
HAVE ME WITH VODKA
Retired StaffFFR Simfile AuthorFFR Veteran
 
Sprite-'s Avatar
 
Join Date: Aug 2005
Location: Long Island, New York
Age: 35
Posts: 7,316
Default 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..
Sprite- is offline   Reply With Quote
Old 12-15-2008, 08:24 AM   #9
fido123
FFR Player
 
fido123's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 4,245
Default 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.
fido123 is offline   Reply With Quote
Old 12-15-2008, 10:07 AM   #10
Chrissi
FFR Player
 
Chrissi's Avatar
 
Join Date: Mar 2004
Location: The Game
Age: 37
Posts: 3,019
Send a message via MSN to Chrissi
Default 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!
Chrissi is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:27 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution