New WordPress PHP Plug-in

Wednesday, March 11, 2009 20:16 | 496 views
Posted in category Announcement, WordPress

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 Saturday 20th of March 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.

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

You can leave a response, or trackback from your own site.

Leave a Reply

:) :( :d :blush: :(( :dance: :x 8-| :eyebrow: :o :think: :-Wi :-w ;) [-( :peace: more »

Quicktags:

CommentLuv Enabled