How to Simply Add PHP Codes in Blogger Blog

php code in blogger

You may simply insert the php code in blogger with reference, unfortunately there is no way to direct add the code in blogger, so we use embed way to add PHP code, here is little about PHP.

About PHP

What is PHP? If you have a website or need to build a website, you might want to know the answer to this question.

PHP web development is a popular and widely used programming language. PHP: Hypertext Preprocessor's. Consider - In 1999, an estimated more than 100,000 sites use PHP, to improve their sites. Today, there are over 1,000,000 websites using PHP.
In the early Internet, most sites are static text pages. With the development of the Internet, people want to have a website more interactive features, such as guest books and contact details. PHP is a perfect tool, still true today.
PHP is a very powerful and complex programming languages. It was originally released in 1995, it has become one of the preferred language of the site development. It runs on the server side, it is very safe.
As a fact, the majority of hosting companies offer PHP with their hosting packages.
If you need an interactive website, such as guest books and contact features, you can learn PHP programming yourself, buy website package, or hire a professional PHP programmers.

How to add it in Blogger

  • Make PHP File with proper .PHP extension
  • Upload it to and get shareable link

Sample PHP Code

echo '<p>Hello World</p>';

It will print Hello Word

Shareable link in google drive

  • Once file is uploaded in google drive, just get the shareable link like shown above, copy it and paste it in the following code.

<object width="400" height="300" type="text/html" data="your-file.php"></object>

  • In the above code Replace your-file.php with the URL that you copied from google drive. that's it
  • Copy the whole code and add it in blogger where you want.
  • You may also change height and width according to your needs


Post a Comment