I Need Serious Help..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gibson63
    FFR Veteran
    • Jan 2007
    • 1319

    #1

    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


  • Red_Comet
    Not your typical member
    • Jan 2003
    • 341

    #2
    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
    Originally posted by Panic4Me
    Bel Air abortion clinic. No fetus can beat us. This is Jess speaking, how may I help you?
    "number 317"

    Comment

    • Necamus
      FFR Player
      • Nov 2005
      • 853

      #3
      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
      im depressed
      hahahahahaha

      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

      Comment

      • OrganisM
        FFR Player
        • Oct 2006
        • 2644

        #4
        Re: I Need Serious Help..

        http://www.google.com
        W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


        Accelerate skills & career development for yourself or your team | Business, AI, tech, & creative skills | Find your LinkedIn Learning plan today.


        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."

        Comment

        • Red_Comet
          Not your typical member
          • Jan 2003
          • 341

          #5
          Re: I Need Serious Help..

          how's the php working for you gib?
          Originally posted by Panic4Me
          Bel Air abortion clinic. No fetus can beat us. This is Jess speaking, how may I help you?
          "number 317"

          Comment

          • dancingmaniac3
            FFR Player
            • Nov 2003
            • 1873

            #6
            Re: I Need Serious Help..

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

            Let alone in chit chat.

            Comment

            • Xx{Midnight}xX
              FFR Player
              • Aug 2007
              • 8548

              #7
              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

              Comment

              • Sprite-
                HAVE ME WITH VODKA
                FFR Simfile Author
                • Aug 2005
                • 7316

                #8
                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, 10:27 PM.

                Comment

                • fido123
                  FFR Player
                  • Sep 2005
                  • 4245

                  #9
                  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.

                  Comment

                  • Chrissi
                    FFR Player
                    • Mar 2004
                    • 3019

                    #10
                    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!

                    Comment

                    Working...