[PHP] PHP file-system functions

2005-05-11 Thread anshul
This script lists all files/directories in '.' directory. I wanna pass some querystring with anchor around directories listed, so that if a user clicks a directory-link, all the files in it are listed. How? Please help. "; echo "Directories:"; while (false !== ($file = readdir($handle))) { if(is

Re: [PHP] File system management

2004-10-24 Thread raditha dissanayake
Jose wrote: Hi, Some of the filesystem function can't be executed in a linux httpd server. I tried, mkdir(); chmod(); fwrite(); and some other filesystem functions. Those worked in widows enviornment but in linux i got a message "Permission denied" My PHP version is 4.2.3 in linux. What are the con

[PHP] File system management

2004-10-24 Thread Jose
Hi, Some of the filesystem function can't be executed in a linux httpd server. I tried, mkdir(); chmod(); fwrite(); and some other filesystem functions. Those worked in widows enviornment but in linux i got a message "Permission denied" My PHP version is 4.2.3 in linux. What are the configurations

Re: [PHP] File System

2003-03-17 Thread Joel Colombo
"Charles Kline" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 17, 2003 6:04 PM > Subject: Re: [PHP] File System > > > > $result = unlink("file.txt") or die("Operation failed!'); > > > >

Re: [PHP] File System

2003-03-16 Thread Philip J. Newman
how about just if (file_exists($dest_file)) { unlink ($dest_file); } - Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 6:04 PM Subject: Re: [PHP] File System > $

Re: [PHP] File System

2003-03-16 Thread Charles Kline
$result = unlink("file.txt") or die("Operation failed!'); On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote: How do i delete a file ... ? kill?? dele *srugs* -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- PHP General Mailing List (ht

Re: [PHP] File System

2003-03-16 Thread Charles Kline
On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote: How do i delete a file ... ? kill?? dele *srugs* -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] File System

2003-03-16 Thread Philip J. Newman
How do i delete a file ... ? kill?? dele *srugs* -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file system question

2001-10-24 Thread Rafael Steil
Well, this is a problem.. with perl, you can use suidperl, but not with php.. the most easyest way is to give write permission to apache user to the directory you want to upload the files... Rafael Steil On Wednesday 24 October 2001 11:43, you wrote: > Hello- > > I'm trying to write a

[PHP] file system question

2001-10-24 Thread Jay Paulson
Hello- I'm trying to write a php script that creates a directory and then copies uploaded files to that directory. That isn't hard but what is hard is the fact that the script tells me that i do not have permission to do any of these actions. I'm running red hat 7.1 and I have heard things abou

Re: [PHP] File system or MySQL ?

2001-03-15 Thread Chris Lee
I would guess that file access is faster, try it out. write a simple app that will write data to a file, close it, open it write it etc. compare this to same on a db. every computer every server is differnet, test to see what is fast on your system. thats ultimitly the most importnat no? that i

[PHP] File system or MySQL ?

2001-03-15 Thread Marian Vasile
What is faster for a chat php software ? To use a file for write or to use a MySQL database ? Marian Vasile IT Manager Schnecker van Wyk & Pearson www.investments.ro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM