• 10
  • Jun

PHP Speedy

PHP Speedy is a PHP script by aciddrop.com that can increase your web site loading time by as much as 500%.

The key to this decrease in loading time is “making fewer HTTP requests, adding a far-future expires header, gzipping your page’s components, and minifying your JavaScript, CSS and HTML”. PHP Speedy accomplishes all of these techniques.

Now, there is also a PHP Speedy Wordpress plugin available. It would be interesting to see a comparison between PHP Speedy and WP Super Cache.

Personally, I haven’t tested PHP Speedy, but it looks promising. Let me know if you have tried PHP Speedy and what your results are.

PHP Speedy [via codefusionlab.co.cc]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • 03
  • Mar

Nothing is worse than entering repetitive, monotonous commands into a router to accomplish a simple task. By using PHPTelnet we can create a script that will make use of a web form to provision (create pvc or a Private Virtual Circuit) DSL customers in a Cisco router. The script will also write to a log file for security and troubleshooting purposes. This script could be used for many other tasks as well as it is very easy to modify.

NOTE: Depending on your setup, you may need to make modifications to the script.
Add PVC Script
First, I will focus on the PHP script, and then the web form.

The first part of the script will call in the PHPTelnet.php file. And grab the variables from our web form with the POST method.

  1. require_once "PHPTelnet.php";
  2.  
  3. $telnet = new PHPTelnet();
  4.  
  5. $vpi = $_POST[‘VPI’];
  6. $vci = $_POST[‘VCI’];
  7. $spd = $_POST[‘SPD’];

This next section deals with logging the requests to a file named ‘log.txt’. Make sure you manually create the file first.

  1. //Log actions to file
  2. $logfile="log.txt";
  3. $fh = fopen($logfile, ‘a’) or die("<br />ERROR: can’t open file");
  4. $stringData = $_SERVER[‘REMOTE_ADDR’]." added ".$vpi."/".$vci." ".date("m-d-y.h:i")."\n";
  5. fwrite($fh, $stringData);
  6. fclose($fh);

Initiate the connection. Make sure to modify the IP address, username, and password.
Read the rest of this entry …

  • 26
  • Jan

Monitoring your website on a shared host is vital to the well being of your existence on the internet. There are several online services that will do this for you in exchange for a small price. While they may be a bit more accurate, I would like to share with you how to use RRDTool to monitor your website’s response time yourself.

RRDTool Ping Graph
image via rrdwiki (didn’t use mine because it hasn’t completed a full cycle yet.)

NOTE: I am using Ubuntu based Linux Mint. This process should be the same on other Debian based distributions. If you are not running a Debian based distribution, you may have to modify some paths to the rrdtool executable. Some of this procedure has been taken from the rrdwiki.

The first step is to install RRDTool:

  1. sudo apt-get install rrdtool

Read the rest of this entry …

  • 22
  • Jan

Add the link below to your bookmarks. You can use this to search many of the top free file hosts for anything that you might be hunting. You would be surprised at what this jewel can find.

Free File Host Search Bookmarklet

Bookmark Me { via ghacks.net }

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • 28
  • Dec

Bitnami install

Cross Platorm BitNami provides ’stacks’ to install web applications specifically for your operation system automatically. Applications are available such as Wordpress, MediaWiki, Drupal, and phpBB.

NOTE: Infrastructure stacks are not required for application stacks.

A list of stacks are downloadable from the BitNami downloads page.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • 24
  • Dec

Open Source Living Logo

The Open Source Living site was created by Andrew, a computer science major from Scotland. Open Source Living contains a database of top quality OSS software.

If the site doesn’t list a software that you are looking for, be sure to submit it.

More at the Open Source Living Website

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • 23
  • Dec

Website Backuporiginal image by Just Taken Pics

Lets face it, no one likes performing manual backups. Often if monotonous tasks are not automated in some way (which they should be, that is why computers were invented) they will be forgotten and not performed regularly.

By using Linux wget and cron, we can incrementally backup websites and write a log file for each day. This will save time and network traffic.

This post features the same method I use to backup Hackosis on a daily basis.

Next, cd ~ into your home directory, or the location were you will be putting the website backup. create a new text file — touch websitebackup.sh. If you are backing up multiple websites, you may wish to name the file specific to the website you are backing up to avoid confusion.

Now execute chmod u+x websitebackup.sh to give the file execute permissions.

Contents of websitebackup.sh. Replace italics respectively:
Read the rest of this entry …

  • 16
  • Dec

Xenu Link Sleuth Logo

Xenu’s Link Sleuth scans your web site for broken links. You can easily exclude URLs and also specify what should be treated as an internal link.

From the site:

Xenu’s Link Sleuth (TM) checks Web sites for broken links. Link verification is done on “normal” links, images, frames, plug-ins, backgrounds, local image maps, style sheets, scripts and java applets. It displays a continously updated list of URLs which you can sort by different criteria. A report can be produced at any time.

Additional features:

  • Simple, no-frills user-interface
  • Can re-check broken links (useful for temporary network errors)
  • Simple report format, can also be e-mailed
  • Executable file smaller than 1MB
  • Supports SSL websites (”https:// “)
  • Partial testing of ftp and gopher sites
  • Detects and reports redirected URLs
  • Site Map

Windows only, but runs fine under wine on Ubuntu 7.10 here.

Xenu Link Sleuth Screenshot:
Xenu Link Sleuth

More Information and Download — Xenu Link Sleuth

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • 12
  • Dec

AntiSpam
image by freezelight

Have you ever noticed linking to your email in a mailto tag on a website generates instant spam to your inbox? Spambots are constantly scavenging the Internet for email addresses.

By using a simple Javascript method, email addresses can be hidden from spambots on web pages. When scripting is disabled, the noscript tag can be used to link to a modified email that spambots will not be able to use.

Example using myemail@domain.com:
 
 

<script language=javascript>
<!--
document.write("<a " + "hre" + "f=m" + "ailto:m" + "yemail@d" + "omai" + "n.com>" + "email " + "me<" + "/a>" + "")
//--></script><noscript><a href="mailto:myemail[AT]domainDOTcom">email me</a></noscript>

Thanks to BlogFlux for the tip.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  • 10
  • Dec

CAPTCHA

Upload your CAPTCHA image to CAPTCHA Killer to see if it can be cracked. It seems most CAPTCHAs can be solved solved in a matter of minutes. What next? Maybe reCAPTCHA.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]