Pentru prima chestie  <?php  $ftp_server = "Server";  $ftp_user_name = "User";  $ftp_user_pass = "Parola";   $last_modified = filemtime("/var/www/.....");   $now = strtotime("now");   $old = $now - $last_modified;   if($old > 3600)   {       $filename = "/var/www/.......";      unlink($filename);      $local_file = '/var/www/......';      $remote_file = '.................'; // aici pui toata adresa adica cand intrii pe ftp pana la server EX:client12/server12/samp/scriptfiles/loguri/nume.log      $conn_id = ftp_connect($ftp_server);      $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);      if (ftp_get($conn_id, $local_file, $remote_file, FTP_BINARY)) {              //echo "Successfully written to $local_file\n";      } else {              //echo "There was a problem\n";      }   ftp_close($conn_id);  }     echo "<table class='sample'><tr>   <td width='40px' class='title'>ID</td>   <td class='title' width='150px'>Admin</td>   <td width='200px' class='title'>Nume</td>   <td width='150px' class='title'>Motiv</td>   <td width='300px' class='title'>Data</td>  </tr>  ";  $i=1;   if(!$file=fopen("..........","r")) die("Error reading housefile");  $strings = ""; while (($data=fgetcsv($file,1024, ",")) !== FALSE)  {      $test = array(          "ID" => $i,          "Admin" => $data[0],           "Nume" => $data[1],          "Motiv" => $data[2],          "Data" => $data[3],          );          $stringv = "<tr>";      foreach($test as $line => $v)      {           $stringv = $stringv . "<td><center><b><font size='1' face='Verdana' color='#ffffff'>" .$v. "</font></b></center></td>";      }          $i++;           $stringv = $stringv .  "</tr>\n";          $strings = $stringv . $strings; }  echo $strings . "  </table>";   ?>