1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP In HTML

Discussion in 'PHP & Perl' started by blacktrilby, Feb 24, 2014.

  1. blacktrilby

    blacktrilby Power Member

    Joined:
    Dec 9, 2008
    Messages:
    512
    Likes Received:
    388
    Occupation:
    Webmaster
    Location:
    Matt Cutts Underwear
    I have a great set of php scripts but with no templates. What is the best way to put them into a template? Can I use a HTML template or is there a cms I can use. I have tried wordpress and all the php plugs I can find but to no avail.
     
  2. IceHD

    IceHD Jr. VIP Jr. VIP Premium Member

    Joined:
    May 8, 2013
    Messages:
    485
    Likes Received:
    198
    Occupation:
    SEO, SEM, HTML5&CSS3 Coder
    Location:
    Not Romania
    You can output PHP easily using HTML :) you can get started using "echo" :)
    Make the template and then try diffrent formats, read a little bit, it's not that hard to achive this :)

    Re read your post, i don't recommand using Wordpress for this.. there are a few plugin that let you use php code insed pages but the load time willl be huge. and if you use mysql, wordpress will crash when it reaches 400k posts
     
    • Thanks Thanks x 1
    Last edited: Feb 24, 2014
  3. blacktrilby

    blacktrilby Power Member

    Joined:
    Dec 9, 2008
    Messages:
    512
    Likes Received:
    388
    Occupation:
    Webmaster
    Location:
    Matt Cutts Underwear
    Thanks IceHD. I sort of thought that would be the best way. *Opens Artiseer.................
     
  4. IceHD

    IceHD Jr. VIP Jr. VIP Premium Member

    Joined:
    May 8, 2013
    Messages:
    485
    Likes Received:
    198
    Occupation:
    SEO, SEM, HTML5&CSS3 Coder
    Location:
    Not Romania
    It's awesome to start coding :) to see your ideeas come to life :)) you can add me on skype if you get stuck :)
     
  5. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,356
    Likes Received:
    5,418
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    You don't need a plugin in WP. Just make it into a shortcode or hook in your functions.php.

    http://codex.wordpress.org/Shortcode_API

    Code:
    function foobar_func(){
    echo "Hello World";
    }
    add_shortcode( 'foobar', 'foobar_func' );
    
    Now just paste your new shortcode [foobar] wherever you want it.
     
    • Thanks Thanks x 1
  6. blacktrilby

    blacktrilby Power Member

    Joined:
    Dec 9, 2008
    Messages:
    512
    Likes Received:
    388
    Occupation:
    Webmaster
    Location:
    Matt Cutts Underwear
    Thanks for that Treeofl1 but I am now having fun building my site from HTML :)
     
    • Thanks Thanks x 1
    Last edited: Feb 24, 2014
  7. WebsiteLiving

    WebsiteLiving Registered Member

    Joined:
    Feb 5, 2014
    Messages:
    99
    Likes Received:
    18
    Home Page:
    Good for you that you are getting into coding. That's when I really started making money online.
     
  8. blacktrilby

    blacktrilby Power Member

    Joined:
    Dec 9, 2008
    Messages:
    512
    Likes Received:
    388
    Occupation:
    Webmaster
    Location:
    Matt Cutts Underwear
    You guys are right!!! It's awesome to start coding.
    I am using a html template, php includes and learning a little on the way. Loving it.