View Full Version : Alternative to remote FTP

06-11-2005, 02:43 AM
Recently, I changed servers for my site and my new host does not has FTP support in their PHP configuration. I have requested for FTP to be added but I am doubtful they will do so.

I have an upload script that uses remote ftp functions because the files are to be uploaded onto a different server. Each file uploaded will also be added to the database which is located in the new server (file server). I cannot find an easier way to workaround the FTP problem since I need to retrieve and verify data from the database and upload the files onto a different servers.

Someone has suggested to me that I have the upload form point to a script on the file server itself but problem arises when I need to verify the data with the database. So I find myself stuck between using remote FTP or remote access to the database. Does anyone have any advice for me? Thank you for your time.

06-11-2005, 03:28 AM
If you're storing the file in the database anyway then why do you also need to store it on the file server? It seems to me that storing it twice is redundant and that by just using the database you will avoid all the headaches this is already causing. Is there some particular reason why they need to be stored on the remote fileserver?

06-19-2005, 05:17 PM
Sorry I was not clear earlier, I'm storing the details of the file in the database while the physical file itself is uploaded onto a remote server. This is because I am unable to store all the files onto the same server due to bandwidth problem. Some people donated their space for me to store the files.

I have not been able to come up with a suitable workaround. The new host still refuses to install ftp support and right now, I'm using the manually upload using ftp software which is very tedious for me.

If anyone has any ideas, please feel free to suggest. Thank you for your time.