Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-20-2006, 08:34 AM   #1 (permalink)
ericyong88
Registered User
 
Join Date: Apr 2006
Posts: 1
ericyong88 is on a distinguished road
FTP upload script

Hi, everyone. Nice to meet you all for the first time here.
I'm a beginner and is looking for a php script which can let my customer to FTP upload large size photo to me in short time?

Thanks for your attention.
ericyong88 is offline   Reply With Quote
Old 04-20-2006, 09:21 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
redhead is on a distinguished road
Hi eric and welcome here at CodeNewbie,

If you havn't found a viable solution, this thread might give you some idear, else theres the move_uploaded_file function, which will provide quite a few suggestions.

//edit Or perhaps the ftp_put function will be the right choice.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001

Last edited by redhead; 04-20-2006 at 11:04 AM.
redhead is offline   Reply With Quote
Old 04-21-2006, 03:10 AM   #3 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 673
DJMaze is on a distinguished road
serverside ftp:
http://dragonflycms.org/cvs/html/inc..._ftp.php?v=9.2

serverside http:
http://dragonflycms.org/cvs/html/inc...fake.php?v=9.2

my cpg_ftp class creates an connection thru FTP to overcome write permission issues on Windows servers and badly configured POSIX servers.
the cpg_ftpfake class has the same methods as cpg_ftp but works on properly configured servers.

I've created both classes so that there's an easy interface for upload management.

Code:
if ($use_ftp) {
    $ftp = new cpg_ftp('ftp://ftp.mydomain.com', 'myname', 'password', '/public_html/uploads/');
} else {
    $ftp = new cpg_ftpfake('', '', '', '/public_html/uploads/');
}

$ftp->up($source, $dest_file, $mimetype);
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
script giving users ftp access morpheuz PHP 10 12-21-2005 07:34 AM
php script that can upload binary data infinite_root PHP 9 08-27-2004 06:03 PM
shell script for ftp Hrqls Linux / BSD / OS X 7 09-20-2002 03:14 AM


All times are GMT -8. The time now is 06:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting