Skip to main content
Home Forums 68kMLA Macintosh ED FTP server connected with SLIP to the Internet — #5
Post #5 by mactjaap
Source Forum68kMLA
CategorySoftware
Post DateSun, 16 Jan 2011 - 14:49
Original URLhttps://68kmla.org/bb/threads/macintosh-ed-ftp-server-connected-with-slip-to-the-internet.22111/
Post
\nHere you can see a directory listing of the NSCA 2.5 Telnet FTP server on a Macintosh Plus ED with 1024K memory over a SLIP connection.\n

";
echo "\n\nYou can click on a link and download the file. Test it with somefile.txt or maybe on a Mac Screen 0....\n

";


$ftpconnect = ftp_connect("192.168.62.32");
$loginResult = ftp_login($ftpconnect, "username", "password");
if ($loginResult) {
$dir = ".";
$files_array = ftp_nlist($ftpconnect, $dir);
print "Files on the 40MB Hard Drive:
";
// You can use foreach instead of while in PHP4
while (list(, $this_file) = each ($files_array)) {
$urlname = urlencode($this_file);
$urlname = str_replace("+","%20",$urlname );

echo "$this_file
\n";
}
}
ftp_quit($ftpconnect);




echo "\n

You can edit and upload the file \"sometext.txt\" here\n

mp.ls