Archive for the 'Programming - PHP' Category

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>”;

Click here to read the full post

Firefox 3.0 Memory Leak Problem Caused By FireBug

My work computer stays on 24/7 and I like to keep all my applications open, including Firefox 3.0. For months now, I noticed that everyday, my firefox.exe process grows to over 1.5 GB, eating up all my system’s memory.  It was a very annoying problem since it would cause my entire system to become sluggish.  [...]

Click here to read the full post

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"; [...]

Click here to read the full post