Skip to main content

Posts

Showing posts from December, 2010

dropdown menu over flash banner

It is often annoying in some browsers when the dropdown menu at the top of the flash banner is displayed at the back of the flash. It can be corrected with some minor changes in the flash embed code: 1. for embed tag, add wmode="transparent" 2. add param to the object tag: <param name="wmode" value="transparent" />

php delete files in a folder and the folder

function rrmdir($dir) { if (is_dir($dir))  { $objects = scandir($dir); foreach ($objects as $object) {     if ($object != "." && $object != "..")  {  if (filetype($dir."/".$object) == "dir") rrmdir($dir."/".$object); else unlink($dir."/".$object);       }     }     reset($objects);     rmdir($dir);   } } $delpath = "user_data"; // directory that has the files rrmdir($delpath);  // deletes all files inside the directory // Remove the directory if(is_dir($delpath))  rmdir($delpath);