From: praveen_m_r at yahoo dot com Operating system: windows XP PHP version: 4.3.8 PHP Bug Type: *Directory/Filesystem functions Bug description: file transfer problem
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 bug report at http://bugs.php.net/?id=29965&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29965&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29965&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29965&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29965&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29965&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29965&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29965&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29965&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29965&r=support Expected behavior: http://bugs.php.net/fix.php?id=29965&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29965&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29965&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29965&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29965&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29965&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29965&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29965&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29965&r=float