This install script used to work fine on my old server, however not working on the new one.
The errors start at ftp_put then continue throughout the script.
The key seams to be that the IF statement is not returning the same output as on the previous server. I think this because the ftp_put IS causing the file to be written to the expected location. If i remove conditional IF statement and just hard code the ftp_put, the file gets written, but then triggers the error on the ftp_delete in the following line.
On the old server the instructions said to "chmod the directory to 777" but on this new server that causes an "Internal Server Error" and must stay at 755, but its still possible to write.
I don't have 'root' access to this server. Ideas as to how to fix it so the install script will work please.
if (@ftp_chdir($conn_id, $basedir) === FALSE)
error("can not change directory to: $basedir");
if (!@ftp_put($conn_id, $tempfile, $temppath, FTP_ASCII))
error("can not write to file: $tempfile.");
if (!ftp_delete($conn_id, $tempfile))
error("could not delete: $tempfile. ");