|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29965 file transfer problem
Submitted: 2004-09-03 09:06 UTC Modified: 2004-09-04 14:01 UTC
From: praveen_m_r at yahoo dot com Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 4.3.8 OS: windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: praveen_m_r at yahoo dot com
New email:
PHP Version: OS:


 [2004-09-03 09:06 UTC] praveen_m_r at yahoo dot com
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){
	$mixed=@ftp_login($handle,$FTPUserName,$FTPPassword) ;
	$workingDirectory=str_replace(  "/home","",$workingDirectory);

	$upload_success=@ftp_put($handle,$remote,$local,FTP_BINARY) ;
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-04 14:01 UTC]
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 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.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 10:03:37 2023 UTC