> Hello,
> I want to open files in a directory other than the Document root via
> HTTP on the client machine. How do i do it ?
Yes, it's possible
Just supose you have the images under /var/images/. This won't be
acceded by apache since it's out of documentroot.
You can set up some alias to /var/i
* Thus wrote Stephen Tiano ([EMAIL PROTECTED]):
>
> A file to read and write to has been provided on the book's CD. I've
> copied this file, named "oders.txt", in a folder (directory) on my hard
> drive, the path which runs like so:
>
>[hard drive name]/Library/WebServer/Documents/orders/or
Stephen Tiano wrote:
And the code the book uses to write to this file is:
// open file for appending
$fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'a');
This is what is in the book, you need to change the path to suit your
setup. Or move the file, it seems moving ./orders/ directory
> -Original Message-
> From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 2:33 PM
> To: PHP (E-mail)
> Subject: [PHP] opening files
>
>
> How do you open a text file and put all the contents into a
> variable like $filecontent?
You use some combination of the
4 matches
Mail list logo