|
Posted by Marcos Gutierrez on 06/02/05 21:54
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Try using FTP
Something like...
$id_con = ftp_connect("localhost");
$resultado_login =
ftp_login($id_con, "ftp_user", "ftp_pass");
if ((!$id_con) || (!$resultado_login)) return 0;
if(!file_exists("my_folder"))
ftp_mkdir($id_con,"/_other_/_ftp_folders/my_folder");
$carga = ftp_put($id_con,
/_other_/_ftp_folders/my_folder/myfile,
$_FILES["myfile"]['tmp_name'], FTP_BINARY);
if(!$carga) return 0;
else return 1;
ftp_close($id_con);
This is what I do to avoid the problem ^^
Greets.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFCn1YDlrI0xkZFpzMRAlA3AKCuNDZdmOnAuEOIx4K33hWvEmJDhACfdUje
wgPpTlbeLoyMD8IWVHlmRo4=
=TrhR
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|