Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Marek Kilimajer
Giulio wrote: I tryied using ftp_put() with startpos parameter, but I receive an error Appen/Restart not permitted, try again http://www.proftpd.org/docs/faq/linked/faq-ch4.html#AEN408 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Marek Kilimajer
Giulio wrote: I tryied using ftp_put() with startpos parameter, but I receive an error Appen/Restart not permitted, try again I tryed both FTP_AUTOSEEK on and off, and both pasv true and false I imagine that this is an ftp server error message, and not a php error, since I have searched it on php

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Giulio
I tryied using ftp_put() with startpos parameter, but I receive an error Appen/Restart not permitted, try again I tryed both FTP_AUTOSEEK on and off, and both pasv true and false I imagine that this is an ftp server error message, and not a php error, since I have searched it on php documentation

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Giulio
Marek, thank you for your answer, Il giorno 27/apr/05, alle 1:28 PM, Marek Kilimajer ha scritto: Giulio wrote: My problem is that I'm using, to make the system as general as possible, and make it work even on servers where php doesn't have write privileges, ftp functions instead of filesystem fun

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Marek Kilimajer
Giulio wrote: Hi, I'm developing an application that uploads file to a server using http. the app calls a php on the server sending all the data just like a web form post. It works just fine uploading little files, now i'm concerning about having the apllication split large files in little chunk

Re: [PHP] Appending to a file

2002-07-10 Thread Chris Earle
command "wc" > > $num_lines = `wc -l $file`; > > Martin > > -Original Message- > From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 2:13 PM > To: PHP List > Subject: Re: [PHP] Appending to a file > > > On W

RE: [PHP] Appending to a file

2002-07-10 Thread Martin Towell
or use the unix command "wc" $num_lines = `wc -l $file`; Martin -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:13 PM To: PHP List Subject: Re: [PHP] Appending to a file On Wed, Jul 10, 2002 at 12:45:01PM -040

Re: [PHP] Appending to a file

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:45:01PM -0400, Chris Earle wrote: > I'm just curious if there's a function that allows you to see how many lines > there are in a file. I don't recall there being one. Simple way: $Array = file('file.name'); echo count($Array); --Dan -- PHP cla