Monthly Archives: October 2010

Recursively Deleting a Directory and Files

I&squo;ve recently had to write a PHP script that needed to delete a directory and all sub directories and files within the directory. With PHP, there are functions available to delete a directory and delete a file.

Posted in Web Development | Leave a comment

How to ZIP files with PHP

Most web servers these days run on a LAMP configuration (Linux, Apache, MySQL, PHP). Because the Operating System is Linux, the default archival and compression utilities are TAR and GZIP resulting in files like “filename.tar.gz”. There is nothing wrong with … Continue reading

Posted in php development, Web Development | Tagged , , , | Leave a comment

Using Perl to time Bash Calls – Bash fine grain timer

Using Perl to time Bash Calls – Bash fine grain timer I was looking for a way to cross platform way to make a microsecond timer or anything less than one second for that matter in bash. Aside from doing … Continue reading

Posted in Bash Scripting, Perl Scripting | 1 Comment

Bash Multi Get using wget

Bash Multi-Get using wget If you were ever looking at using wget with a proxy – then this is probably the script for you. I haven&squo;t spent much time testing this and it requires a helper program written in perl … Continue reading

Posted in Bash Scripting | Leave a comment

Bash SQL Query Helper

What is Bash SQL Query Helper? This script is a very simple script that helps one to run sql commands from the command line with the command name and the query as opposed to running all sorts of switches. This … Continue reading

Posted in Bash Scripting | Leave a comment

Restoring MySQL Dump with PHP

As web developers, we are usually tasked with deploying a project to a production server that we don&squo;t always have access to. And in most cases the projects require a database. The usual plan of action consists of running a … Continue reading

Posted in php development, Web Development | Tagged , , , , | 1 Comment

Remote DB Access

Having trouble accessing your database remotely? Hosting providers are among the funniest people to deal with, and I am not talking about a humerous evening I had out with a server admin one time at the bar. They are a … Continue reading

Leave a comment

What is remv.php

What is remv.php The file remv.php is a script that MAY be found inside your website regardless if you have a CMS or not and is a popular script used to inject code into your site. This is definately not … Continue reading

Posted in Web Development | Leave a comment

Callback Functions

Many times called, once called back init function If you have done any programming to build extensions or plugins in the form of a dll or shared object, then you probably know the purpose of this class or funcion structure, … Continue reading

Posted in Tech and How To | Leave a comment

ICS DNS Bind with Sqlite Using Dynamic Loadable Zones

Easier ways to manage DNS.   Todays DNS management is mostly web based using 3rd parties like GoDaddy or Tucows to actually manage your domains and point either to a 3rd party hosting company like HostGator or Netfirms. So what, … Continue reading

Posted in Projects | Leave a comment