Ftp timeout

I have a configuration problem on my laptop and I am hoping that someone can point me in a direction that can help me solve it. I can connect to an FTP server with PHP and move files around on it without a problem. But when I try to use a script to list files in a directory on the same server, it times out and gives me a fatal error. I have taken the script and run it from another computer running Xampp as well and it gets the info without an issue, so it can’t be a coding issue and has to be some type of configuration issue. Can anyone tell me anything that could help me solve this?

I want to give some tips here for the ftp problem.It may help.

  1. turn off the firewall
    2.change the transfer mode
    3 connect by the ftp tool not the browser

I have tracked it down to a Windows Firewall issue…