No Picture

Installing VSFTPD

July 30, 2010 amit 0

1.Install it from the ports cd /usr/ports/ftp/vsftpd make config make install clean 2.Edit the vstfpd.conf file in /usr/local/etc/vsftpd.conf to customize the settings 3.To run it […]

No Picture

How to save a remote image to local disk

July 30, 2010 amit 0

$image_url = “http://example.com/image.jpg”; $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $image_url); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // Getting binary data curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, […]