PHP In HTML

blacktrilby

Supreme Member
Joined
Dec 9, 2008
Messages
1,317
Reaction score
1,122
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.
 
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
 
Last edited:
Thanks IceHD. I sort of thought that would be the best way. *Opens Artiseer.................
 
It's awesome to start coding :) to see your ideeas come to life :)) you can add me on skype if you get stuck :)
 
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 for that Treeofl1 but I am now having fun building my site from HTML :)
 
Last edited:
Good for you that you are getting into coding. That's when I really started making money online.
 
Good for you that you are getting into coding. That's when I really started making money online.

It's awesome to start coding :) to see your ideeas come to life :)) you can add me on skype if you get stuck :)
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.
 
Back
Top