|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
FTP Problems
Ello,
I grabbed a script elsewhere on these forums, to test whether I can FTP to a server from where my webpages are hosted. Here is the script..... PHP Code:
Now, this script IS connecting OK - but for some reason it cannot seem to list the contents of a directory. I've also tried this.... PHP Code:
But any way I try it, it wont seem to list directory files. Any ideas why this would be? It doesn't come up saying the connection failed (in the first example) but $dir is always false for some reason. Cheers, JT |
|
#2
|
||||
|
||||
|
anyone?
|
|
#3
|
||||
|
||||
|
I noticed that if I try to access the FTP site through a browser using the ftp://username:password@IPADDRESS:port/ format, it comes up with this as an error....
An error occurred opening that folder on the FTP server. Make sure you have permission to access the folder. Details: 200 Type set to A. 500 Invalid PORT command. 500 'LPRT 6,16... ...9,4,79': command not understood I can access the FTP through an FTP client, but apparently can't do it through a browser. Can someone lettuce know what might be going on here? Last edited by JonnyThunder : January 19th, 2004 at 02:31 PM. |
|
#4
|
||||
|
||||
|
It's OK folks. Solved it... needed to be in PASV mode!
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP Problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|