Yes, I am using SFTP. For this reason, i have specified port is 22. If i removed it, it shows another error message. I think, everything is correct in my code but it is not executing and it is failed at ftp_connect() function.
You can check it at http://testing.designerashok.com/file-upload.php
Does DreamHost require any other setting or programming factors to use such functions?
I am testing this code at http://testing.designerashok.com/file-upload.php
It shows error [quote]Could not connect to ftp.testing.designerashok.com[/quote]
Should i change the host name for SFTP? I could not understand why my basic instruction fails to connect to FTP by PHP function. Please guide me to solve this issue.