How do I set up a cronjob to work with PHP or Shell Scripts

Feb 24, 2019
A cronjob is a program that is set up to run according to a pre-determined schedule. It can be used to execute a PHP application or a shell script (#!/bin/sh, #!/bin/csh, etc). The examples I give here should work on a Linux, UNIX, BSD operating system. In my crontab I add the followin Continue reading...

How do I use PHP to list files in a directory?

Feb 24, 2019
To use PHP to list file (or directories) in a folder: <?php $folder = "/home/some_folder"; if ($handle = opendir("$folder")) { { while (false !== ($file = readdir($handle))) echo "File: $file"; { } closedir($handle); ?> Continue reading...

PHP script - duplicate content in database, duplicate execution

Feb 24, 2019
Background: I developed a PHP scripts for Joomla/Virtuemart that could be used to import shipping/handling fees from a .csv file into Joomla's shipping_rate table. Problem: Although the script executes and imports the data correctly whenever I would check the dat Continue reading...

PHP script - duplicate content in database, duplicate execution

Feb 24, 2019
Background: I developed a PHP scripts for Joomla/Virtuemart that could be used to import shipping/handling fees from a .csv file into Joomla's shipping_rate table. Problem: Although the script executes and imports the data correctly whenever I would check the dat Continue reading...
close sidebar container