Re: Code did not work on Explorer but worked on PHP coder.
| From: | leo g. divinagracia iii | Date: | Mon, 01 Oct 2001 20:32:58 +0000 |
| Subject: | Re: Code did not work on Explorer but worked on PHP coder. | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9641@lists.php.net to get a copy of this message | ||
at most... if you look at the generated HTM file, all you'll see are the
html tags and a number between the <body> and </body> tags...
Burak Delice wrote:
>
> hi
> I tried a php code below:
>
> <!doctype html public "-//W3C//DTD HTML 4.0 file://EN">
> <html>
> <head>
> <title>Title here!</title>
> </head>
> <body>
> <?
>
> // Full sys path to count.txt
> $counter_file = "c:\count.txt";
>
> // Puts the file lines into $counter_file_line array
> $counter_file_line = file($counter_file);
>
> // adds one to the number in the [0] array or the very first line
> $counter_file_line[0]++;
>
> // opends the file and then writes the new number and then closes it
> $cf = fopen($counter_file, "w");
> fputs($cf, "$counter_file_line[0]");
> fclose($cf);
>
> // prints out the full count
> echo "$counter_file_line[0]";
>
> ?>
> </body>
> </html>
>
> whe I run this sample in "php coder" it worked. But when I run on Internet
> exoplorer it did not work. empty screen appeared.
>
> why?
>
> not: I have using windows 2000, IIS5 and PHP4.
>
--
Leo G. Divinagracia III
ldivinag@csuhayward.edu