Edit report at https://bugs.php.net/bug.php?id=52329&edit=1

 ID:                 52329
 Updated by:         [email protected]
 Reported by:        daniel dot requena at gmail dot com
 Summary:            ftp_connect doesn't work on web script but works on
                     command line
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            FTP related
 Operating System:   Centos
 PHP Version:        5.3.3RC2
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Probably due the firewall?


Previous Comments:
------------------------------------------------------------------------
[2010-07-13 15:28:28] daniel dot requena at gmail dot com

Description:
------------
Hi,
I have the next script:
<?php
$ftp_host = '192.168.1.120';//'ftp.adrive.com';
if(!$connId = ftp_connect($ftp_host))
{
        echo "Not connected to {$ftp_host}!!";
}
else
{       
        echo "Connected!!";
        ftp_close($connId);
}
?>
When I call this script using command line with the next command:
>php pruftp.php, I always get "Connected!!", but when I call from accessible 
>public url as the next: http://emucent/pruftp.php I always get Now connected 
>to 1192.168.1.120. 
What can be the problem?

Expected result:
----------------
Connected!!

Actual result:
--------------
Not connected to 192.168.1.120!!


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=52329&edit=1

Reply via email to