Get Updated
Uncategorized

Use php Script in Blogger



Blogger Lunched at August 23, 1999. It was developed by Pyra Labs, which was bought by Google in 2003. Blogger host its websites as a subdomain of blogspot.com but you also can use your own Domain for Blogger. Visit Set custom domain for blogger blog

Blogger dont allow it’s users to insert php scripts Directly:

<?php
echo ‘<p>Hello World</p>’;
?>
So The Question Raised How to Use Php scripts in blogger or blogspot.
Let’s Start.

First

We Need to Create a php file. Let Create a Simple Php file Which will Display Hello World.

<?php
echo ‘<p>Hello World</p>’;
?>
Save it as hello.php

Second

Now We Need to Uplode this file on a host so that It can Be Used from all around the worls. We need a host But Those Who use blogger in blogspot.com don’t have any host. or They cant store it in blogger. For Those they can uplode that file in Google Drive. Let use Google’s Product ha ha. Now in Google drive uplode the hello.php and set it for Public to read.

Third

Now We are Going to insert that file into Blogger Post.

<iframe frameborder=”0″ height=”1000″ sandbox=”allow-same-origin allow-scripts allow-forms” src=”Link to the hello.php” width=”95%”>
<p>
Your browser does not support iframes.</p>
</iframe>

“Your Browser does not Support iframes” is Displayed if browser does’t support iframe.

Its is Over Now Now you had Successfully inserted .php file in Blogger.

To use PHP with database in Blogger Just make the Permision of that file and database connecting file Public for Reading.But frames are not recommended And also there is no ways to do. Blogger should update its service to allow php scripts in the profile that users can create awesome posts and Best ranks too.

Don’t Forget to ask for Help if need.



Article written by: Sagar Devkota

This is Sagar Devkota Co-Founder of Time and Update. I write about Online Earning Blogging web hosting and domain registration tutorials local technical news and some time about Cryptocurrency mainly Bitcoin. I also write about Git, Github, C, Django, Linux (ubuntu), Cloud Server and what ever not only what I know but also what I heard.

Leave a Reply

Your email address will not be published. Required fields are marked *