HTTP/1.1 // 38.107.191.88 // // 37837 // // CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Wordtracker Keyword Research

Archive for the 'PHP Scripts' Category

cPanel Bandwidth Checking Script

Oct
27
2009

I’ve been pretty frustrated with the way that cPanel notifies (or doesn’t notify) me of bandwidth overages. Seems sometimes I get them and sometimes not. So when I found out that you can do this with the WHM XML api I wanted to get it set up ASAP. This script can be [...]


Simple Email Logger Using cPanel’s Pipe Forwarder

Mar
31
2009

I needed a way to easily log all email being sent from my websites so I devised this solution where I just have to bcc the emails to a single email address and they get placed in a database.
First, add a forwarder in cPanel. Enter a super secret address to forward. [...]


More 5 Comments » 2,345 views
Posted in: PHP Scripts, Programming, cPanel

Automatic cPanel Backup

Dec
18
2008

I read this great post today that shows how to automatically backup cPanel with PHP and a cron job and FTP the backup to a remote host. The guy that wrote this recommends that you keep the file on the server you want to backup, but I have like 50 cPanel sites and so [...]


More 5 Comments » 3,558 views
Posted in: PHP Scripts, Programming, cPanel

Quick and Dirty Wordpress Page Feed Plugin

Nov
24
2008

Since WordPress doesn't support rss feeds for pages out of the box and I needed it, I decided to write this plugin to satisfy my need for now. Like the title says, this is quick and dirty, but it gets the job done. The next version of this plugin will be an RSS 2 [...]


Extending a WordPress Site: Core Hijack

Jul
30
2008

It's pretty easy to hijack some core WordPress code and use it to extend the functionality of your WordPress site while keeping a cohesive look and feel. Basically, this technique creates a WordPress 'shell' that you can code inside of; utilizing all of WordPress's functions and themes, but leaving out the blog. I [...]


More 7 Comments » 5,481 views
Posted in: PHP Scripts, Programming

PHP Timing Script With Average Time

May
22
2007

I needed a script that would time some php I wrote to see if using an output buffer would speed it up. I used the php microtime() function to accomplish the timing feature, and combined that with sessions to capture an average execution time. This is the result:

<?php
session_start();
if (isset($_GET['clear'])) session_unset();
else {
$ac = $_SESSION['avg_count']++;
}
$ts = [...]


More 1 Comment » 1,922 views
Posted in: PHP Scripts, Programming