Fat_N_Furry
12-07-2002, 01:12 PM
Hello. Me once again. I made this script that's supposed to upload picture files to my site, but it's broken and I cannot, for the life of me, figure out what's wrong with it.
My Code:
<?
$file = stripslashes($file);
/*Get rid of the slashes inserted by Flash*/
echo $file;
/*Make sure we have the correct file*/
$conn = ftp_connect("*****");
/*Connect*/
ftp_login($conn, "*****", "*****");
/*Hah! Did you really think I was going to give you my username and password?? You fools! :D*/
ftp_chdir($conn, "*****");
/*Change the directory to the one I want realative to the root directory*/
ftp_put($conn, $file, FTP_IMAGE);
/*Upload the file*/
ftp_close($conn);
/*Close the connection*/
?>
Thanks in advance,
Furry
My Code:
<?
$file = stripslashes($file);
/*Get rid of the slashes inserted by Flash*/
echo $file;
/*Make sure we have the correct file*/
$conn = ftp_connect("*****");
/*Connect*/
ftp_login($conn, "*****", "*****");
/*Hah! Did you really think I was going to give you my username and password?? You fools! :D*/
ftp_chdir($conn, "*****");
/*Change the directory to the one I want realative to the root directory*/
ftp_put($conn, $file, FTP_IMAGE);
/*Upload the file*/
ftp_close($conn);
/*Close the connection*/
?>
Thanks in advance,
Furry