ID:               29965
 Updated by:       [EMAIL PROTECTED]
 Reported By:      praveen_m_r at yahoo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *Directory/Filesystem functions
 Operating System: windows XP
 PHP Version:      4.3.8
 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. 

Thank you for your interest in PHP.

PHP has nothing to do with hostname resolution. Check you DNS settings.


Previous Comments:
------------------------------------------------------------------------

[2004-09-03 09:06:58] praveen_m_r at yahoo dot com

Description:
------------
Iam writing a code for transfering(uploading) file from one server to
another server from the client system. Iam using FTP functions for
that.Iam also giving the code below

Function
uploadTemplate($hostname,$FTPUserName,$FTPPassword,$remotelocation){
    [EMAIL PROTECTED]("$hostname");
        [EMAIL PROTECTED]($handle,$FTPUserName,$FTPPassword) ;
        [EMAIL PROTECTED]($handle);
        $workingDirectory=str_replace(  "/home","",$workingDirectory);
        $workingDirectory=str_replace("ftp","",$workingDirectory);

        $local="$local";
        //$remote=$remotelocation."index.php";
        $remote="/www/htdocs";
        $remote=$remote.$workingDirectory."sample.php";
        directory=".$workingDirectory."<br>remote=$remote");
        
        [EMAIL PROTECTED]($handle,$remote,$local,FTP_BINARY) ;
                echo($upload_success);
        
        @ftp_quit($handle);
return $upload_success;
 }
?>
When i used IP address of the host instad of host name  only ftp_put
shows FALSE. Otherwise entare code is not working.
Please replay me.



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


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

Reply via email to