mam nastepujacy forumlarz w html:
Kod
cat ftp.php
<html>
<head>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">
<META HTTP-EQUIV="Content-Language" CONTENT="PL">
</head>
<body bgcolor="white">
<BR>
<br>FTP</br>
<form name=ftp action=loguj.php method=post>
Login: <input type=text name=login size=10>
<br>
Pass: <input type=text name=pass size=10>
<br>
server: <input type=text name=host size=10>
<br>
port: <input type=text name=port size=10>
<input type=submit value="loguj">
</form>
</body>
</html>
root@lin:/usr/local/apache2/htdocs#
<html>
<head>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">
<META HTTP-EQUIV="Content-Language" CONTENT="PL">
</head>
<body bgcolor="white">
<BR>
<br>FTP</br>
<form name=ftp action=loguj.php method=post>
Login: <input type=text name=login size=10>
<br>
Pass: <input type=text name=pass size=10>
<br>
server: <input type=text name=host size=10>
<br>
port: <input type=text name=port size=10>
<input type=submit value="loguj">
</form>
</body>
</html>
root@lin:/usr/local/apache2/htdocs#
i skrypt w php
cat loguj.php
<html> <head> <META HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html; charset=iso-8859-2\"> <META HTTP-EQUIV=\"Content-Language\" CONTENT=\"PL\"> </head> <body bgcolor=\"white\"> <?php $ip = gethostbyname($host); $timeout = 10; if (ftp_login($id, $login, $pass)) { } else { } ?> </body> </html>
skrypt ten sprawdza czy server ftp odpowiada , czy pasuje haslo i login.
taraz pytanko:
jak moge odtworczyc katalog danego uzytkownika($login, $pass) na danym serwerze($ip)
'w' stronie gdzie znajdowal sie MOJ formularz(dokladnie komorka tabeli)


nie wiem czy mnie zrozumiecie..
pozdro
newbie
---
Prosze umieszczac kod php w [php] (ciagi zawierajace kod php tez :-) )
hwao