Archive

Archive for August, 2008

Remote Upload To Imageshack.Us With PHP+cURL

August 30th, 2008 Admin 50 comments

PHP supports libcurl since V 4.0.2, a library created by Daniel Stenberg (more information go here), that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP’s ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

Now with cURL we trying to make a script that post images to Imageshack.Us via remote upload and return direct link of images. Here the source code to download.

Read more…

Dynamic Image With PHP

August 29th, 2008 Admin 4 comments

Normally if we want to use image on HTML we must using IMG tag with direct link of any image. But now with PHP we can do a little tricks. Just for fun and maybe it’s usefull for you. Who knows :) Let’s get started.

This is normally IMG tag.

<img src=”http://domain.com/your-image-url.gif” />

But now we change like this.

<img src=”http://domain.com/img.php?img=3″ />

Read more…

Categories: PHP Tags: , ,