Jump to content

unexpected T_STRING in ftp


jakebur01

Recommended Posts

I am getting an unexpected t_string near the fput line.


$fp = fopen($source_file, 'r');
$ftp_server = 'ip'; 
$ftp_port = '21'; 
$ftpUser = "user"; 
$ftpPass = "pass"; 
$ftp_connect = ftp_connect($ftp_server,$ftp_port);
ftp_login($ftp_connect, $ftpUser, $ftpPass); 
ftp_chdir($ftp_connect, "/u/ssc/price/")
ftp_fput($ftp_connect, $filename, $fp);
ftp_close($ftp_connect);

 

 

Link to comment
https://forums.phpfreaks.com/topic/140523-unexpected-t_string-in-ftp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.