New WordPress PHP Plug-in
Posted by macbros | Under Announcement, WordPress | 448 views Wednesday Mar 11, 2009I 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.






Who's Talking