Internet Marketing, Web Development and Programming Stuff

Posts Tagged ‘wordpress’

thumbnail

uri_part: A PHP Function for Working with the Current URI

A PHP function that makes it extremely easy to display dynamic content within your existing Content Management System (CMS), web application framework or standard “PHP-enabled” website.
function uri_part($n) {
$path = explode(“/”, $_SERVER["REQUEST_URI"]);
for ($i = 0; $i <= count($path); $i++) {
if(is_null($path[$i]) || $path[$i] == “”) {
unset($path[$i]);
}
}
$path = array_values($path);
switch($n) {
case 0: return @$path[0]; break;
case 1: return @$path[1]; break;
case …

thumbnail

Remove WordPress Post Revisions for Database Optimization

Ever since WordPress introduced autosaving and revision control features, larger blogs have seen a significant increase in the size of their databases. If your WordPress installation has slowed dramatically or you are simply looking to optimize your database by removing countless records you’ll never end up actually needing, run the following query on your WordPress …

thumbnail

List of 138 Ping URLs (RPC / RPC2 Services)

If you’re on WordPress or another blog that lets you specify the services you want to ping whenever you post to or update your blog (e.g. Ping-o-Matic), here’s a list that expands on the list of 56 RPC and RPC2 Services to Ping graciously provided by Elliott Back back in 2004.