On Wed, February 20, 2008 3:29 pm, Yuval Schwartz wrote:
> Hello and thank you,
>
> Another question, I get a message:
>
> *Warning*: feof(): supplied argument is not a valid stream resource in
> *
> /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52*
> **
> And I've tried troubleshootin
Yuval Schwartz schreef:
Hello and thank you,
Another question, I get a message:
*Warning*: feof(): supplied argument is not a valid stream resource in *
/home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52*
**
And I've tried troubleshooting for a while; I'm pretty sure I'm opening the
On Feb 20, 2008, at 1:29 PM, "Yuval Schwartz"
<[EMAIL PROTECTED]> wrote:
Hello and thank you,
Another question, I get a message:
*Warning*: feof(): supplied argument is not a valid stream resource
in *
/home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52*
**
And I've tried troubl
At 11:29 PM +0200 2/20/08, Yuval Schwartz wrote:
Hello and thank you,
Here is my code if you're interested (it's so that I color every 2nd line in
the text):
Try something like this instead.
In your html:
In your css:
.row0
{
background-color: #B3C6FF; /* blue */
On Wed, Feb 20, 2008 at 4:38 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
> I may be showing my ignorance here... But on your if ($counter % 2
> ==0) line what does the "%" do? Was that possibly a typo?
"If the line is divisible by 2."
>
> Also, it might be good to point out what line 52 is
I may be showing my ignorance here... But on your if ($counter % 2 ==0)
line what does the "%" do? Was that possibly a typo?
% is the modulus operator, so basically that will alternate between a
line having a font tag and not having a font tag.
http://www.php.net/operators.arithmetic
--
Po
> -Original Message-
> From: Jason Pruim [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 20, 2008 4:39 PM
> To: Yuval Schwartz
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Php warning message
>
>
> On Feb 20, 2008, at 4:29 PM, Yuval Schwartz wr
>
> *$boardFile = "MessageBoard.txt";
> $boardFileHandle = fopen($boardFile,"r");
> for ($counter = 1; !feof($boardFileHandle); $counter += 1) {
> $colorLine = fgets(boardFilehandle);
> if ($counter % 2 == 0) {
> echo "$colorline";
> } else {
> echo $colorline;
> }
> }
> fclose($boardFileHand
On Feb 20, 2008, at 4:29 PM, Yuval Schwartz wrote:
Hello and thank you,
Another question, I get a message:
*Warning*: feof(): supplied argument is not a valid stream resource
in *
/home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52*
**
And I've tried troubleshooting for a while;
Hello and thank you,
Another question, I get a message:
*Warning*: feof(): supplied argument is not a valid stream resource in *
/home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52*
**
And I've tried troubleshooting for a while; I'm pretty sure I'm opening the
file handle correctly and
10 matches
Mail list logo