[PHP] File management.

2004-05-06 Thread Carles Xavier Munyoz Bald
Hi
Is there any php set for file management ?
The only thing I want is a set of PHP functions that allows me add and remove 
lines from a file.
Is there any thing done ?

Greetings.
---
Carles Xavier Munyoz Baldó
[EMAIL PROTECTED]
http://www.unlimitedmail.net/
---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] File management.

2004-05-06 Thread Jay Blanchard
[snip]
Is there any php set for file management ?
The only thing I want is a set of PHP functions that allows me add and remove 
lines from a file.
Is there any thing done ?
[/snip]

See http://www.php.net/fopen

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] file management system

2004-03-11 Thread Decapode Azur
hi all,

I am looking for a file management system.
Does anyone know if such a thing exists?

The goal is to make a web site with computer graphics resources.

The features we would like to find in it would be these if possible:
- the possibility to upload files
- the possibility to check the uploaded file
 (Fileinfo is available on our server)
- the possibility for the uploaders to refer informations and key words on the 
file they upload
- the possibility for the uploaders to introduce themselves in a quick 
description of them and their work
- the possibility for the uploaders to chose the license in which their work 
will be available (copyright or copyleft)
- the possibility for the visitors to browse in the files available
(date, type of file, key words, author, license, popularity of a file, etc..)
- the possibility for the visitors to post reactions and discuss about the 
files, and to rate these.
- we're looking for such a system as Free software (GPL for example)
- if all those feteares are not available in an existing system,
 we will add those, but if such a system do not exist, is there people 
interested in the same features to develop it with us or just helping with 
testing and feedback?



Cheers++

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] file management system

2004-03-11 Thread Evan Nemerson
On Thursday 11 March 2004 02:59 pm, Decapode Azur wrote:
 hi all,

 I am looking for a file management system.
 Does anyone know if such a thing exists?

 The goal is to make a web site with computer graphics resources.

Take a look at http://www.abnormis.com/

It's an awesome resource for dark art, but what's more pertinent here is that, 
iirc, they run postnuke.

 The features we would like to find in it would be these if possible:
 - the possibility to upload files
 - the possibility to check the uploaded file
  (Fileinfo is available on our server)
 - the possibility for the uploaders to refer informations and key words on
 the file they upload
 - the possibility for the uploaders to introduce themselves in a quick
 description of them and their work
 - the possibility for the uploaders to chose the license in which their
 work will be available (copyright or copyleft)
 - the possibility for the visitors to browse in the files available
 (date, type of file, key words, author, license, popularity of a file,
 etc..) - the possibility for the visitors to post reactions and discuss
 about the files, and to rate these.
 - we're looking for such a system as Free software (GPL for example)
 - if all those feteares are not available in an existing system,
  we will add those, but if such a system do not exist, is there people
 interested in the same features to develop it with us or just helping with
 testing and feedback?



 Cheers++

-- 
Evan Nemerson
[EMAIL PROTECTED]
http://coeusgroup.com/en

--
Only the other day, historically speaking, the 'holy inquisition' burned or 
silenced scientists. The discovery of the microscope and telescope, for 
instance, was delayed for a long time because the inventor, in fear of 
priestly persecution, was afraid to write his scientific discoveries in plain 
language. He had to write them in cipher- a fact discovered only a few years 
ago. Those afflicted with diseases can easily realize where our science in 
general, and medical science in particular, might be today if not for the 
holy zeal of powerful enemies of science who vehemently and ruthlessly 
sponsored ignorance, old s.r, and so disease.

-Alfred Korzybski

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] File management system

2003-03-20 Thread J J
Anyone have a good recommendation for a file
management system that would allow the average person
to browse certain files/directory on a web server and
possibly make edits.

Then the front-end would sort of catalog those files
and index them so the web user could browse/search and
open the files?

Something like:
Category1:
  file1 --- this file contains blah blah blah
  file2 --- this article talks about blah
Category2
  

So maybe if there was a way to tack on categories and
descriptions to files, that would be nice.



I found phpCommander or something like that after
looking through tons of applications on hotscripts,
most were junk.  It's fine for looking at
folders/files and editing, but there's nothing to
catalog or display the files on a front-end.

So I'm looking for good recommendations.  Thanks in advance!

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File management system

2003-03-20 Thread Mike
Webmin has some good stuff. (it's a java applet though...)

On Thu, 2003-03-20 at 06:14, J J wrote:
 Anyone have a good recommendation for a file
 management system that would allow the average person
 to browse certain files/directory on a web server and
 possibly make edits.
 
 Then the front-end would sort of catalog those files
 and index them so the web user could browse/search and
 open the files?
 
 Something like:
 Category1:
   file1 --- this file contains blah blah blah
   file2 --- this article talks about blah
 Category2
   
 
 So maybe if there was a way to tack on categories and
 descriptions to files, that would be nice.
 
 
 
 I found phpCommander or something like that after
 looking through tons of applications on hotscripts,
 most were junk.  It's fine for looking at
 folders/files and editing, but there's nothing to
 catalog or display the files on a front-end.
 
 So I'm looking for good recommendations.  Thanks in advance!
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File management system

2003-03-20 Thread J J
Yeah I think I've seen that one... looking for a
php/mysql solution if possible.

Thanks!


--- Mike [EMAIL PROTECTED] wrote:
 Webmin has some good stuff. (it's a java applet
 though...)
 
 On Thu, 2003-03-20 at 06:14, J J wrote:
  Anyone have a good recommendation for a file
  management system that would allow the average
 person
  to browse certain files/directory on a web server
 and
  possibly make edits.
  
  Then the front-end would sort of catalog those
 files
  and index them so the web user could browse/search
 and
  open the files?
  
  Something like:
  Category1:
file1 --- this file contains blah blah blah
file2 --- this article talks about blah
  Category2

  
  So maybe if there was a way to tack on categories
 and
  descriptions to files, that would be nice.
  
  
  
  I found phpCommander or something like that after
  looking through tons of applications on
 hotscripts,
  most were junk.  It's fine for looking at
  folders/files and editing, but there's nothing to
  catalog or display the files on a front-end.
  
  So I'm looking for good recommendations.  Thanks
 in advance!
  

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] file management

2001-09-07 Thread Gerard Samuel

Can a file be truncated from the beginning, and by x amount of lines??
Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] file management

2001-09-07 Thread Sterling Hughes

On Fri, 7 Sep 2001, Gerard Samuel wrote:

 Can a file be truncated from the beginning, and by x amount of lines??
 Thanks

Truncated from the beginning?  Do you mean truncate the file by X
lines, starting from the first position in the file, well, yeah:

?php
$fp = fopen(filename, r+);

// Start counting from 0, set to one, if you want to start counting
// from 1
$count = 0;

while (!@feof($fp)) {
// Not used, but unless your line lengths are longer than
// 4K, this will effectively skip over a line
$line = fgets($fp, 4096);

if (++$count == $line_number_you_want) {
ftruncate($fp, ftell($fp));
}
}

fclose($fp);
?

Please note the above is devoid of error checking :)

-Sterling


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] file management

2001-09-07 Thread Gerard Samuel

You know what, I think Im explaining myself wrong.  The word truncate in
itself means I believe to cut at the bottom.  This isn't what I need.
Basically, its a chat script and all the newer messages are at the
bottom, and when the file reaches x bytes I want to 'cut off the head'
of the file by x lines. leaving the most current messages at the bottom
alone.
Ive been messing around with truncate all this time getting the wrong
results.  Why cant files be as easy as databases :)
If any one has a clue please point it to me.
Meantime, back to the manual.
Thanks

Sterling Hughes wrote:
  On Fri, 7 Sep 2001, Gerard Samuel wrote:
 
 
 Can a file be truncated from the beginning, and by x amount of lines??
 Thanks
 
 
  Truncated from the beginning?  Do you mean truncate the file by X
  lines, starting from the first position in the file, well, yeah:
 
  ?php
  $fp = fopen(filename, r+);
 
  // Start counting from 0, set to one, if you want to start counting
  // from 1
  $count = 0;
 
  while (!@feof($fp)) {
  // Not used, but unless your line lengths are longer than
  // 4K, this will effectively skip over a line
  $line = fgets($fp, 4096);
 
  if (++$count == $line_number_you_want) {
  ftruncate($fp, ftell($fp));
  }
  }
 
  fclose($fp);
  ?
 
  Please note the above is devoid of error checking :)
 
  -Sterling
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]