MacBros' Place |

Everybody's Entitled To My Opinion
RSS Feed

New WordPress PHP Plug-in

Wednesday Mar 11, 2009

I installed a new plug-in that allows me to add PHP code on the posts for future projects that I have in mind. So this is basically a test.

The following code here is what I placed in this post

<span style=”font-family:Arial; font-size:20px; color: #000000;”>
I knew you would be here on <?php echo date(‘l jS \of F Y’); ?>
<?php $ip = $_SERVER['REMOTE_ADDR'];
$url = “http://www.ipmango.com/api.php?ip=”.$ip;
$xml = simplexml_load_file($url);
echo “in the City of {$xml->city}, “;
echo ” {$xml->region} “;
echo ” {$xml->countryname}. “; ?>
</span>

Which resulted in the following bold text.



I knew you would be here on Tuesday 9th of February 2010 in the City of , .

Hopefully I can manage to get a new Hard Drive for my good computer sometime soon. I know, I keep saying that, but I’ve been so fucking broke and never have the money to buy one. But until I get one, nothing spectacular will be done. I need my good computer to do my Flash Animations and Photoshop work, and some projects will be cartoons of Buddy and Brain.

So, this is a test and it seems to be working.

Plug-in used is PHP Execution.

Share and Enjoy:
  • StumbleUpon
  • Digg
  • Facebook
  • Technorati
  • blogmarks
  • Google Bookmarks
  • del.icio.us
  • Mixx

Comments are closed.

Legal Notice: All the information and items on this site are not to be used for anything but entertainment purposes only.
The information on this site cannot be used in any legal purposes, or entrapment. The information on this site is strictly for entertainment purposes only.
Comments are the responsibility of commenter. Allowing comments to remain does not constitute my endorsement of or responsibility for any comment's subject matter.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.
ss_blog_claim=b72df72715553c06acc21528f9832044