Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host = "s1.servhost.pl";
- $user = "...";
- $password= "...";
- $path = "/";
- $pftpconnection = ftp_connect($host);
- if($pftpconnection)
- {
- @ftp_login($pftpconnection, $user, $password);
- $parent = substr($path, 0, strrpos($path, "/"));
- ftp_chdir($pftpconnection,$path);
- }
- $filename = "server_log.txt";
- if(file_exists($filename))
- {
- $lines = file("$filename");
- foreach ($lines as $line)
- {
- $string .= "<Br>".$line;
- }
- }
- echo $string;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement