HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
PHP FGet() function
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
jmpalmer



Joined: 16 Sep 2008
Posts: 1

PostPosted: Tue Sep 16, 2008 3:30 pm     PHP FGet() function Reply with quote

All:

I have the following simple FTP/PHP code that doesn't give any errors but the target file doesn't transfer.

I transfer the file from "command line params" and through FlashFXP ( a GUI ftp program) without a problem.

*The code*

<?php
$source = "source.txt";
$target = fopen("target.txt", "w");

$conn = ftp_connect("xxx.xxx.xxx.xxx") or die("Could not connect");
ftp_login($conn,"platypi","password");
ftp_fget($conn,$target,$source,FTP_ASCII);
fclose($target);
ftp_close($conn);
?>

Why won't this simple text FTP file transfer work?

Tanks for the help.

John
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial