Hi guys,I am trying to connect to pureftp server but unable to do it.
I'm testing on localhost.I have started httpd and pure-ftpd server.
PHP Code:
<?php
$ftp_server="localhost";
ftp_connect($ftp_server) or die("connection failed");
?>
When I execute the above code I get "connection failed".But when I type
ftp://localhost/ in the browser directly ,it works perfectly fine and shows the ftp folder.
I'd be glad if anyone could help me.
Thank you.