|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchespruftp.txt (last revision 2010-07-13 13:32 UTC by daniel dot requena at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 15:58 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-11-15 15:58 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 02:00:01 2025 UTC |
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!!