-Original Message-
From: Luis Moreira
To: Svensson, B.A.T. (HKG); ''William Fisher ' '
Cc: [EMAIL PROTECTED]
Sent: 2003-03-11 15:42
Subject: Re: [PHP-WIN] Newbie attempting file open...
What for ?
The option "r" stans for "read".
If what William is doing
ra
To: Svensson, B.A.T. (HKG); ''William Fisher ' '
Cc: [EMAIL PROTECTED]
Sent: 2003-03-11 15:42
Subject: Re: [PHP-WIN] Newbie attempting file open...
What for ?
The option "r" stans for "read".
If what William is doing is try to read a file, and then create
27;William Fisher ' '"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 2:00 PM
Subject: RE: [PHP-WIN] Newbie attempting file open...
> Luis, read the code once again....
>
> -Original Message-
> From: Luis Moreira
> To:
Luis, read the code once again
-Original Message-
From: Luis Moreira
To: 'William Fisher '
Cc: [EMAIL PROTECTED]
Sent: 2003-03-11 12:03
Subject: Re: [PHP-WIN] Newbie attempting file open...
No need.
It's the other way around, actually.
The option that creates if the th
er '" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 9:15 AM
Subject: RE: [PHP-WIN] Newbie attempting file open...
> You may want to try something like this:
>
> $fp = @fopen(,"r");
>
> if ($fp)
> {
> print"An old file
You may want to try something like this:
$fp = @fopen(,"r");
if ($fp)
{
print"An old file was opened!";
} else {
$fp = @fopen(,"w");
fclose($fp);
$fp = @fopen(,"r");
print"New file was created!";
}
-Original Message-
From: William Fisher
To: [EMAIL PROTECTED]
Sent: 2003-03-10
http://www.php.net/manual/en/function.fopen.php
-Original Message-
From: William Fisher
To: [EMAIL PROTECTED]
Sent: 2003-03-10 19:54
Subject: [PHP-WIN] Newbie attempting file open...
The Question: It is my understanding that fopen() using the "r" option
will either open the indicated fi