Monday, 19 January 2015

how to run php code on blogger

I want to run php code on my blogger.

I am following this link

http://www.mybloggerlab.com/2013/10/how-to-easily-add-php-codes-in-blogger.html

and here will update what extra i had to do.

Trying to do it right in this post

1. created helloworld.php using notepad with this content:

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

2.
now to upload it in google drive I am following this tutorial

http://www.mybloggerlab.com/2013/04/how-to-host-css-or-javascript-files-in-blogger-using-google-drive.html

Change
https://drive.google.com/file/d/0BwqMfuVVnopVX1pDNVhzX1NUSE0/view?usp=sharing

-->
https://googledrive.com/host/0BwqMfuVVnopVX1pDNVhzX1NUSE0

3.
Added this link:
<object width="400" height="300" type="text/html" data=" your-file.php"></object>


Ok.. end result is php file gets downloaded on my system. This is not what i wanted. :( :(
I wanted to run php code but looks like this is not possible with googledrive. I will probably have to host it on a php hosting service provider.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home