Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-04-2005, 06:37 AM   #1
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
php - ftp upload thru form

i need to install a form that allows clients to upload binary files up to > 100 mb on our server. i tested several classes to make an ftp connection to our ftp server but unfortunately the upload works only on linux clients with opera or konqueror. netscape and mozilla dont transmit the entire path to the file to be uploaded so they fail anyway. IntenetExplorer gives the correct path but the upload does not arrive on the server.

on my box i have pure-ftpd running and in the logs an successful upload is displayed like that:

1 - linux pure-ftpd: (?@ [INFO] New connection from
2 - linux pure-ftpd: (?@ [DEBUG] Command [user] [ftp-user]
3 - linux pure-ftpd: (?@ [DEBUG] Command [pass] [<*>]
4 - linux pure-ftpd: (?@ [INFO] ftp-user is now logged in
5 - linux pure-ftpd: (ftp-user@ [DEBUG] Command [cwd] [/srv/www/htdocs/stock/lfd/web41da4fc9789a7/]
6 - linux pure-ftpd: (ftp-user@ [DEBUG] Command [pasv] []
7 - linux pure-ftpd: (ftp-user@ [DEBUG] Command [type] [I]
8 - linux pure-ftpd: (ftp-user@ [DEBUG] Command [size] [/srv/www/htdocs/stock/lfd/web41da4fc9789a7/15013.JPG]
9 - linux pure-ftpd: (ftp-user@ [DEBUG] Command [stor] [/srv/www/htdocs/stock/lfd/web41da4fc9789a7/15013.JPG]
10 - linux pure-ftpd: (ftp-user@ [NOTICE] //srv/www/htdocs/stock/lfd/web41da4fc9789a7/15013.JPG uploaded (887874 bytes, 1022.57KB/sec)
11 - linux pure-ftpd: (ftp-user@ [DEBUG] Command [site] [CHMOD 777 15013.JPG]
12 - J linux pure-ftpd: (ftp-user@ [DEBUG] Command [quit] []

if a visitor from Windows tries to upload line 7,8,9,10 are simply missing. no error message - no upload

I used a class i got from phpclasses to connect to the server and have now switched to Net_FTP from pear - but no luck yet.

Do u have an idea what i might be missing? would be great!
cheers, j.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web form to upload to FTP server phatboyz Linux - Networking 2 05-18-2005 10:26 AM
PHP form help Zeppelin_Fan Programming 5 03-24-2005 04:47 PM
php/form kev82 Programming 0 02-25-2004 06:21 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 04:23 PM
ftp upload in php raven Programming 2 07-07-2002 05:33 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration