Monthly Archives: July 2009

Simple AJAX example in WordPress.

I had a tough time finding a simple AJAX example that used PHP, Perl, and Javascript – hopefully this one will help WordPress users integrate AJAX, PHP, and Perl code into their posts and pages without too many problems. The code should be straightforward enough for you to copy/paste, see how it functions function, and [...]

Posted in Programming, Wordpress | Tagged , , | Leave a comment

Use PHP in WordPress page or post using RunPHP.

If you want to insert PHP code into your WordPress blog post or page itself, you’re going to need to install a plugin called RunPHP. The plugin’s developer’s site can be found here: http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/. You can download this plugin, install it quickly, and start using PHP code in your page. I found this especially useful [...]

Posted in Programming, Wordpress | Tagged , | Leave a comment

Get alexa rank from alexa.com with perl.

This is just a little code snippet to return the alexa rank of a given site from http://alexa.com. The script should be easily adaptable to whatever you’re using it for, but let me know if you have any questions. #!/usr/bin/perl use strict; use LWP::Simple; use URI::URL; my $need_alexa_rank = $ARGV[0]; my $url = url(“http://alexa.com/siteinfo/$need_alexa_rank”); my [...]

Posted in Programming, Webhosting | Tagged | Leave a comment