Thursday, May 14, 2009

How to add PHP tags to blogs

Hey guys i've found out how to add php tags and hence examples to the blog. We just have to replace the '<' symbol in tags with a '<' statement, which will render the '<' symbol for us. Its as easy as that. The problem is that google or blogspot server supports the php and hence when i quote examples, they were actually parsing it, i.e, executing the php code. So in order to prevent that we'll render the '<' symbol in the other way, and presto it works. Also put the examples within a <pre> </pre>, it will show the examples as a code-fragment(i.e, in that style).
Now i'll quote more php examples in the blog.

5 comments:

sanil said...

hai..........wondrful blog

sanil said...

thanks for the information................

sajinsj said...

Thanks Mr.Sanil for your support. Please continue reading and send in your valuable opinions.

Shyaam said...

Great resource and list, will certainly be bookmarking this page.I am thinking on using it on my professional blog . Thank For Post.......

Rightway Solution said...

Good work. Basically I am not a web developer but Being an SEO guy i know the importance of PHP. Like to have some more articles