Thursday, February 5, 2009

Downloading files via FTP in PHP(using library functions)

//starting php tag
ini_set('output_buffering','On');
$connect=ftp_connect("localhost/ip addr") or die();

$uname="username";
$passwd="password";
$login_result=ftp_login($connect,$uname,$passwd);// Logs in to an
// FTP
connection


$dir="/home/sameer/wallpaps";
$dir_list=ftp_nlist($connect,$dir);// Returns a list of files in the //given directory

$i=0;
foreach($dir_list as $file)
{
if(preg_match("/*.jpg/",$file))
{
echo "$file";
ftp_get($connect,$newfile[$i],$dir.$file,FTP_ASCII);
$i++;
//Downloads a file from the FTP server
}

}
ftp_close($connect);
?>

Sunday, November 2, 2008

80's in 2008!!!

Well,2008 is at an end and it has been a good year!!!!

I know Grunge,Alternative killed ROCK way back,but it came back this year with many 80's band releasing albums after a long hiatus...

The year started with EUROPE doing an semi-acoustic concert titled "ALMOST UNPLUGGED" covering songs from floyd,led zepp,thin lizzy,UFO....
my rating: 9/10,a must listen!!!!

A much anticipated DEF LEPPARD album was ,well,FAIL!!!...."Songs from the sparkle lounge",how the hell is that a name of an rock album!!!!
There was this one track "NINE LIVES" which caught my attention mostly due to it's excessive play on VH1 during summer holidays!!!
my rating:can't.

WHITESNAKE-The gods shone brighter than ever...."Good to be bad" was probably one of the best albums this year......can't pick a particular track,Coverdale rules!!!!!
my rating:10/10(listen & die a happier man).

MOTLEY CRUE-Hohoho....."Saints of Los Angeles" was heavier,dirtier and crazier than ever....."down at the whisky",title track,"mf of the year","the animal in me","chicks trouble".....glam metal revived!!!!
my rating:9.5/10(we are the saints,one day u will confess....& pray to the saints of los angeles).

METALLICA-finally a Metallica album "Death Magnetic"....though it did very well,i was personally disappointed...mayb i just expected more,after all it's METALLICA....."the day that never comes","cyanide","unforgiven 3","my apocalypse" are a must listen....
my rating:8.5/10(i m sure everyone heard this).

FINALLY,AC/DC-whoaaaa,they are back..."Black Ice",living true to bands rock n roll image,it rocked n rolled bigger & better...."rock n roll train","skies on fire","smash & grab","decibel","stormy may day","she likes rock n roll","rock n roll dream",".....stop me!!!!
my rating:10/10(long live angus.long live rock n roll)....

Overall,great listening this year!!!!!

Wednesday, September 3, 2008

Mobi-Vision

The new buzz in OPEN source sector is mobile programming & app development....GOOGLE joined the OPEN HANDSET ALLIANCE and came up with ANDROID(open source OS like openmoko)....ANDROID mobile's r due in 2009...

Joining the buzz,LUG(linux user's group,manipal) has come with the MOBI-VISION event in our annual tech-fest(techtatva08.com)...

Currently,we r undertaking a mobi-vision workshop on Symbian(nokia) and Android....MIT,manipal saw one of the biggest turn out ever in coll history with over 250 people turning up for the workshop...

I am taking the android workshop with other luggies...Due to the tremendous enthu shown by the students(especially 1st & 2nd years), the 5 day wrkshp has been extended to 10 days....
After the workshop,a competition will take place in october(under Techtatva) where students will be required to create their own innovative mobile application(either in Symbian or Android)....outstation participants r also invited!!!!

check out:http://wiki.lugmanipal.org
for questions:http://forums.lugmanipal.org
pics:http://tinyurl.com/6hpusn

Sunday, August 24, 2008

Hellosss!!!

ahem....i have avoided this day for quite some time now.......but since the world has become a blogosphere,i could delay no more.......hereafter,i proudly step into "B" hoping to reach new heights of joblessness!!!!

I am sameer kumar....studying 3rd year comp engg......trying(as everyone else)to find purpose & meaning of myself & this world........love music,sports,gadgets,parkour,computers!!!



cheers!!!!!