Re: Verify if a file exists and.....

From: Date: Mon, 21 Oct 2002 23:44:19 +0000
Subject: Re: Verify if a file exists and.....
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-120826@lists.php.net to get a copy of this message
I would also like to add as a late side effect...permissions are often fun with this type of operation. You will probably have to change ownership of the files you intend to read and write to the user Apache runs as (typically 'nobody') and then protect these files with some sort of user authentication. Which would be a wonderful time to dive into sessions! -Brad Brad Bonkoski wrote: > Alright: > 1). http://www.php.net/manual/en/function.file-exists.php > 2). http://www.php.net/manual/en/function.fopen.php > 3). http://www.php.net/manual/en/function.fread.php > 4). http://www.php.net/manual/en/function.fwrite.php > 5). http://www.php.net/manual/en/function.is-readable.php > 6). http://www.php.net/manual/en/function.is-writable.php > > Well, that should get you started, just type in what you are looking for in > the search @ www.php.net. Much more fun to do it yourself then to have > someone else tpye out the code for ya :-) > HTH > -Brad > > Kevin Fradkin wrote: > > > then... depending... if exist show the info of that file..and give me the > > possibility to change the info inside the file showing ( here you have to > > read 1st from the file you are checking...all the variables on it...) and > > then save it again as the same name... > > > > ifnot.. redirect to another page > > > > thnx in advanced! > > > > Spooky > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#120826) next »