Skip to main content

Posts

PHP:function to extract files from zip

The  unzip.php   program, shown in  Example, extracts files from a ZIP archive. It uses the  pc_mkdir_parents( )  function. The program also requires PHP's  zip   extension to be installed. You can find documentation on the  zip  extension at  http://www.php.net/zip . This program takes a few arguments on the command line. The first is the name of the ZIP archive it should unzip. By default, it unzips all files in the archive. If additional command-line arguments are supplied, it only unzips files whose name matches any of those arguments. The full path of the file inside the ZIP archive must be given. If  turtles.html  is in the ZIP archive inside the  animals  directory,  unzip.php  must be passed  animals/turtles.html , not just turtles.html , to unzip the file. Directories are stored as 0-byte files inside ZIP archives, so  unzip.php  doesn't try to create them. Instead, before it creates any other file, it uses  pc_mkdir_parents( )  to create all directories that are par...

A Story for those who are Married....not Married......and soon to be Married. I'm sure, u'll be touched.

When I got home that night as my wife served dinner, I held her hand and said, I've got something to tell you. She sat down and ate quietly. Again I observed the  hurt in her eyes .  Suddenly I didn't know how to open my mouth. But I had to let her know what I was thinking.  I want a divorce..  I raised the topic calmly.  She didn't seem to be annoyed by my words, instead she asked me softly, why?  I avoided her question. This made her angry. She threw away the chopsticks and shouted at me, you are not a man! That night, we didn't talk to each other. She was weeping. I knew she wanted to find out what had happened to our marriage. But I could hardly give her a satisfactory answer; she had lost my heart to Dew. I didn't love her anymore. I just pitied her!  With a deep sense of guilt, I drafted a divorce agreement which stated that she could own our house, our car, and 30% stake of my company.  She glanced at it and then tore it into pieces. The woman who had spen...

Analog clocks in flash

http://www.permadi.com/tutorial/flashAnalogClock/index.html http://www.pixelhivedesign.com/tutorials/Customizable+Analog+Clock/ -- "You see things; and you say 'Why?'; But I dream things that never were; and I say 'Why not?' "- George Bernard Shaw ----------------------------------------------------- Best Regards Pavan Kumar N, Project Engineer (HBCG), C-DAC's R&D, Pune-411007 Mob: 9595714186 http://twitter.com/simplypavi