Saturday, November 17, 2012

How to use Php in Blogger Detailed Tutorial

How to use Php in Blogger Detailed Tutorial


Blogger does not support PHP language, because PHP is a server side language but it does not mean that you can not use PHP in blogger.

After some research i finally managed to use some PHP widgets in blogger that you can not install directly in blogger and you might have seen most of them in wordpress blogs.

Yes now you can use wordpress widgets in blogger blog as well (well, when i say almost all widgets but this requires a lot of experience and PHP knowledge. ).



How to use PHP in blogger blog?






Basically, The idea is that you host your PHP files externally to any other server (Free or Paid), and you 'embed/call' that PHP file in your blogger blog. For example we are going to create a simple PHP file and we will upload it to a free server and finally we will call/embed that page in blogger.

First Step: Signup for a free account on any PHP supported server, i will recommend 000webhost because it supports PHP and provide you 1500MB free web space with many sub-domains. For more information about 000webhost click here.

Now open notepad and paste this code in it. Save it as test.php

<html>
<body>

  <?php

 print ("Wow! I can use PHP in blogger now...! <br/>");
 print ("Thanks to <a href='http://premium-stuff-guru.blogspot.com'>PremiumStuffGuru</a>");
  ?>

</body>

</html>


Now login to your 000webhost account, create new domain and click on 'Go to CPanel' and click on File Manager, Enter your Login details if asked. Than go to publick_folder and click on upload button. Select your test.php file and click Tick button to upload it.

Now we have successfully uploaded the file, and we have to use it in our blogger blog, so go to your blogger blog create a new post. Select HTML compose mode and paste this code.

<object type="text/html" data="http://REPLACE_WITH_YOUR_HOST/test.php"></object>

Make sure to change the url of the file with yours. Click on Publish and We are Done! see the result.

What's Next?






This is just a beginning, you will find some unique and very useful widgets in my upcoming tutorials, so make sure you have subscribed to our RS feeds and Liked our Fanpage.

9 comments:

  1. still its not working it is displaying some error
    please reply new solution

    ReplyDelete
  2. Hi,

    Recently I came across some great articles on your site.
    The other day, I was discussing (http://premium-stuff-guru.blogspot.in/2012/11/how-to-use-php-in-blogger-detailed.html)with my colleagues and they suggested I submit an article of my own. Your site is just perfect for what I have written!
    Would it be ok to submit the article? It is free of charge, of course!

    Let me know what you think
    Contact me at anelieivanova@gmail.com

    Regards
    Anele Ivanova

    ReplyDelete
  3. This information is very helpful. Keep posting.

    Website Development company

    ReplyDelete
  4. Thank for Visit Us:

    ARKA Softwares & Outsourcing is an IT Company focusing on software & Web development and providing offshore outsourcing solutions to enterprises worldwide.website development company in australia

    ReplyDelete
  5. How To Use Php In Blogger Detailed Tutorial >>>>> Download Now

    >>>>> Download Full

    How To Use Php In Blogger Detailed Tutorial >>>>> Download LINK

    >>>>> Download Now

    How To Use Php In Blogger Detailed Tutorial >>>>> Download Full

    >>>>> Download LINK IC

    ReplyDelete
  6. How To Use Php In Blogger Detailed Tutorial >>>>> Download Now

    >>>>> Download Full

    How To Use Php In Blogger Detailed Tutorial >>>>> Download LINK

    >>>>> Download Now

    How To Use Php In Blogger Detailed Tutorial >>>>> Download Full

    >>>>> Download LINK zt

    ReplyDelete
  7. Iqra Technology is an IT Solutions and Services Company. We aim to provide cost-effective IT services within the customer’s budget range.
    PHP Developer
    CakePHP Developer

    ReplyDelete

Social Profile

Total Pageviews