I didn’t like managing all of my website’s CRON jobs via CPanel because I couldn’t easily see what my jobs were and when they will run next. So I decided to manage the CRON in my applications database and with a simple PHP script. You will need to only create 1 CRON job in Cpanel… Read more
PHP
Useful tips for PHP developers using MySQL
MySQL is a very common database used while developing web application. When developers are using PHP as their main programming language, they prefer MySQL as database. We are going to discuss some of uncommon but useful queries and precautions every developer should follow and will be taken care of. 1. Why not to use… Read more
Codeigniter 2.0: How to Download & Install
[Update 07/18/2015] The long awaited, and much anticipated Codeigniter 3.0 has officially been released. The Codeigniter project is now under new management, BCIT, and they are aiming to re-ignite the project and keep it competitive with other frameworks. If you are interested to see a list of every change between Codeigniter 2.0 vs 3.0, view the… Read more
How to call JavaScript function from PHP
This article will show you how to call a JavaScript function from within PHP code. It is quite simple actually! echo "<script language=javascript>myfunction();</script>"… Read more
How to SCP (Secure Copy) files using PHP5
This article will explain how to SCP (Secure Copy) files using PHP5. SCP is a secure method of copying files from one host to another using the SSH protocol. Here is a snippet of working code to help get you started! $hostname = "target_host"; $username = "root"; $password = "password"; $sourceFile = "test.txt"; $targetFile =… Read more