I am creating a program with php to move files to a remote server using the built in ssh2 functions in php. If i create a new account and run the program everything works great the first time. Then the trouble starts. After the first run it does not work anymore. The program will not ftp. When i try to use winSCP from my computer it will not connect now either. I get the error below...

Cannot get real path for '.'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 16

I beleive it is something on the server as i have tried to connect from 2 computers and they both give the same error. Any help is appreciated!