Step#1: Creating a PHP File:
Before yous tin dismiss add together PHP Codes inward blogger, yous accept to offset create a PHP file inward which yous accept to role all the PHP codes that yous would similar to use. However, brand sure that the file is gratis from errors otherwise things would non expect good. Following is the elementary Hello World PHP code example, simply for a basic guideline for around beginners<?php
echo '<p>Hello World</p>';
?>
After creating the file amongst all your desired codes brand sure yous salve it inward .PHP extension. For example, mybloggerlab.php, yous tin dismiss role NotePad++ for writing codes because it is the alone FREE criterion developing tool.
Step#2: Hosting a PHP File:
Since, blogger does non let yous to host whatsoever sort of files similar PHP, HTML or CSS. Therefore, yous accept to either host it on your hosting (if yous have) or yous tin dismiss role Google Drive to host them for FREE. We accept already written a detailed tutorial on It, so read it here.You tin dismiss also role Dropbox, together with many other gratis hosting services but for certain they are non ameliorate than the features together with reliability of Google Drive.
Step#3: Adding PHP Codes inward Blogger
After creating together with hosting the PHP file, login into your Blogger account. Once logged in, caput over to the dashboard together with conduct the spider web log on which yous would similar to add together PHP Codes. Now it depends on your needs whether yous wishing to add together the PHP code inward posts, pages, sidebar or footer. Just glue the next code anywhere yous would similar to display the PHP file.<object width="400" height="300" type="text/html" data=" your-file.php"></object>
Don’t forget to supervene upon your-file.php amongst the URL of your ain PHP file that yous may accept got spell hosting it on services similar Google Drive Dropbox together with etc.
Congratulations: You accept successfully added PHP codes to blogger. Go together with banking concern stand upward for your spider web log to meet if things are working equally planned. Let us know, if yous accept a ameliorate means of doing this job.
We promise this tutorial has helped yous inward learning how to add together PHP codes inward blogger. Still, this is non the virtually accurate means because nosotros are simply using a iFrame technique to include the codes. Blogger needs to intend to a greater extent than on making its platform friendly for the developers together with hence that they tin dismiss convey awesomeness to their blogs together with websites.
Comments