Advertisement
GWibisono

galau list fungsi sendiri

May 31st, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <form action="" method="post"
  2. enctype="multipart/form-data">
  3. <label for="file">Filename:</label>
  4. <input type="file" name="file" id="file"><br>
  5. <input type="submit" name="submit" value="Submit">
  6. </form>
  7. <?php
  8. if($_FILES)
  9. {
  10.  
  11.     copy($_FILES['file']['tmp_name'],'1.tmp');
  12.    
  13.     $f=file_get_contents('1.tmp');
  14.     $a=explode("\n",$f);
  15.     $f2='<table border=1>';
  16.     foreach($a as $v)
  17.     {
  18.         $v2=substr(trim($v),0,8);
  19.         if($v2=='function')
  20.         {
  21.             $v0=trim(str_replace('function','',$v));
  22.             $v0=trim(str_replace('{','',$v0));
  23.             $f2.="<tr><td>$v0\n</td><td>&nbsp;</td></tr>";
  24.         }
  25.        
  26.     }
  27.     $f2.="</tr>";
  28.     echo $f2;
  29.     ?></table><textarea id="shipping_address" name="cf_address" cols="70" rows="12"></textarea><?
  30.  
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement