Re: [PHP] Php warning message

2008-02-21 Thread Richard Lynch
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

Re: [PHP] Php warning message

2008-02-20 Thread Jochem Maas
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

Re: [PHP] Php warning message

2008-02-20 Thread Casey
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

Re: [PHP] Php warning message

2008-02-20 Thread tedd
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 */

Re: [PHP] Php warning message

2008-02-20 Thread Daniel Brown
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

Re: [PHP] Php warning message

2008-02-20 Thread Chris
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

RE: [PHP] Php warning message

2008-02-20 Thread Andrés Robinet
> -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

Re: [PHP] Php warning message

2008-02-20 Thread Greg Bowser
> > *$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

Re: [PHP] Php warning message

2008-02-20 Thread Jason Pruim
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;

[PHP] Php warning message

2008-02-20 Thread Yuval Schwartz
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