Web Thumbnails, create your account to upload your files for free, or send an ecard.

I just have the correct set of tools and the web application for your creativity. You can create your login and use your imagination to create your own eCrads. There\’s a lot more things that you can do. I will leave those for your creativity.

Here is the link:


Update 21/01/2009: When I was on vacation I took some photos which you can buy here. If you just want to send it to someone, you can go to http://amit.themafia.info/gallery2. You would need to check the gallery called \”Yash\”

Get you ip address like whatismyip.com

For last couple of days, I was thinking of putting this. I was thinking of some way to get the IP address of the client directly rather than going through some site or parsing the content. So here it is.

Now the trick here is simple. There are two ways to get the IP address of the client in the php script and thus a simple script like the below would capture both of them.


echo \”<html><body><font size=\’3\’><b>IP Address= $ip</b><br>\”;
echo \”<font size=\’3\’><b>IP Address= $ip1</b>\”;

Now this can be used in scripts to get you IP address very quickly if only there were no html tags and no junk and only the IP address. So here is a direct link to your IP alone.

This is a php which does not create any text and thus you can get the IP adress directly without parsing too. There are two lines in the file and both contain the IP address 🙂

Here is an example to use in bash scripts:

wget http://amit-agarwal.co.in/mystuff/getip_txt.php -O ak 2>/dev/null && ip=`tail -1 ak`

After you have executed the above the IP address used by your client is put in the variable ip. You can check this with http://whatismyip.com for this first time to verify it is working fine. So enjoy scripting.