WinForms

List Drives and Folders in a TreeView Using C#

The .NET Framework makes it easy to read drive and folder details but it does not include a Windows Forms control to automatically list them other than the FolderBrowserDialog control. Here is a fast and Read More ›

Linux

Shortcut Keys for Bash

A list of 30 Bash shortcut keys that will save you time. Bash is the default shell in most Linux distributions and the most popular. The shortcuts are divided into 3 sections (navigation, editing and cutting and pasting) for easy reference. Read More ›

PHP

A Simple Port Scanner in PHP

Here is a simple port scanner written in PHP. It checks if a port is accessible by trying to connect to it using PHP's fsockopen function. The first foreach loop goes through the port numbers in the $ports array trying to connect to each one using the fsockopen function. Read More ›

MySQL · PHP

Managing Application Settings in PHP

There are multiple ways to save application settings/configurations in PHP. You can save them in INI, XML or PHP files as well as a database table. I prefer a combination of the latter two; saving the database connection details in a PHP file and the rest in a database table. Read More ›

Announcements

Cronless Now Supports 30 Second Cron Jobs

Today we released a new Cronless update that allows premium members to schedule cron jobs to run every 30 seconds (twice per minute).To make use of this feature create a new job or modify an Read More ›

PHP

Download And Search Multiple Pages Using PHP

Here is a simple way to loop through a list of URLs, download the page and search the contents for a string. The script starts by checking if the post variable $_POST['urls'] is set. If it is, its content is split by line breaks into the array $urls to easily read one URL at a time using the foreach loop. Read More ›

Announcements

Minor Interface Tweaks to Cronless

We did some minor interface and settings tweaks this week to Cronless: Minimized the Server Load's refresh counter to 15 seconds to display a more accurate number. Reformatted the jobs and monitors log pages to Read More ›

MySQL · PHP

Backup MySQL Databases to Amazon S3 Using PHP

With a few lines of PHP code and S3tool's s3cmd command-line tool you can backup your MySQL databases automatically to Amazon's S3. To use this script you will need SSH access to your server. First download s3cmd and upload it to your server. Installation is straight forward. Read More ›

Linux

Uses of Netcat in Linux

Netcat is a networking program in UNIX-like systems for reading from and writing to network connections using TCP or UDP. Its man page says 'The nc utility is used for just about anything under the sun involving TCP or UDP'. So here are a few ways it can be used: Read More ›

Announcements

Cronless Bug Fixes and Updates

A few members complained that cron jobs did not execute properly when the scripts being called printed specific HTML tags. This includes members using MailBeez. We fixed this and now the scripts being called will work properly regardless of its output. Read More ›