two gamma event


2012

This is an old revision of the document!


Title

Tes. Date, 2012

<php>

	$dir='/Users/terning/Sites/seminars/data/pages/'2012'/';
	print($dir);
	
	if (is_dir($dir)) 
	{
	                				print($dir);
	  if ($dh = opendir($dir)) 
	  {
		 while (($sub= readdir($dh)) !== false) 
		 {
		   
		   if ($sub != "." && $sub != ".." && strpos($sub,".txt.lock") == false ) 
		   {
			 $subdir=$dir.$sub;
			 if ( is_dir($subdir))
			 {
			   if ($subdh = opendir($subdir)) 
			   {
				 while (($spfile = readdir($subdh)) !== false) 
				 {
		   
				   if ($spfile != "." && $spfile != ".." && strpos($spfile,".txt.lock") == false ) 
				   {
	
					 
					 if( strpos($spfile,".txt") !== false )
					   $spfile=substr_replace($spfile,'',strpos($spfile,".txt"),4);
						print($spfile);
						array_push($pages,$query.":".$sub.":".$spfile);
				   }
				 }
			   }
			   closedir($subdh);
			 }
		   }
		 }
		closedir($dh);
	  }
	}
	
      return $pages;
  }
  <?php>

































 
2012/test.1393609421.txt.gz ยท Last modified: 2014/02/28 09:43 by terning
Recent changes RSS feed Creative Commons License Powered by PHP