Step#1: Creating a PHP File:
Before y'all tin forcefulness out add together PHP Codes inwards blogger, y'all accept to offset create a PHP file inwards which y'all accept to purpose all the PHP codes that y'all would similar to use. However, brand sure that the file is complimentary from errors otherwise things would non await good. Following is the uncomplicated Hello World PHP code example, only for a basic guideline for about beginners<?php
echo '<p>Hello World</p>';
?>
After creating the file alongside all your desired codes brand sure y'all relieve it inwards .PHP extension. For example, mybloggerlab.php, y'all tin forcefulness out purpose NotePad++ for writing codes because it is the solely FREE criterion developing tool.
Step#2: Hosting a PHP File:
Since, blogger does non let y'all to host whatsoever form of files similar PHP, HTML or CSS. Therefore, y'all accept to either host it on your hosting (if y'all have) or y'all tin forcefulness out purpose Google Drive to host them for FREE. We accept already written a detailed tutorial on It, so read it here.You tin forcefulness out also purpose Dropbox, together with many other complimentary hosting services but surely they are non improve than the features together with reliability of Google Drive.
Step#3: Adding PHP Codes inwards 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 weblog on which y'all would similar to add together PHP Codes. Now it depends on your needs whether y'all wish to add together the PHP code inwards posts, pages, sidebar or footer. Just glue the next code anywhere y'all would similar to display the PHP file.<object width="400" height="300" type="text/html" data=" your-file.php"></object>
Don’t forget to supersede your-file.php alongside the URL of your ain PHP file that y'all may accept got piece 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 jibe your weblog to come across if things are working every bit planned. Let us know, if y'all accept a improve means of doing this job.
We promise this tutorial has helped y'all inwards learning how to add together PHP codes inwards blogger. Still, this is non the virtually accurate means because nosotros are only using a iFrame technique to include the codes. Blogger needs to mean value to a greater extent than on making its platform friendly for the developers together with hence that they tin forcefulness out convey awesomeness to their blogs together with websites.
No comments:
Post a Comment