Re: [PHP] Original problem? From: Richard Lynch (richard <email protected>)
Date: 12/29/00

You need " on the filename for $brev to be interpreted, not '

" and ' are very different in a subtle way.

Read the PHP manual online at http://php.net -- the first few sections are
critical for this kind of info.

----- Original Message -----
From: "Hooligan" <Hooligan <email protected>>
Newsgroups: php.general
Sent: Friday, December 29, 2000 4:11 PM
Subject: [PHP] Original problem?

>
> How do i get this little tag to work?
>
> i want the $brev to be a dynamic file just like page.php?brev=cheese
>
> And then it should load
>
> /home/widegren/public_html/veckobrev/cheese
>
> This below dont work, any suggestions?
>
>
>
> $fcontents = $fcontents = file ('/home/widegren/public_html/veckobrev/
> $brev');
> while (list ($line_num, $line) = each ($fcontents)) {
> echo "" . htmlspecialchars ($line) . "<br>\n";
> }
>
>
>
>
> /Peter
>
+--------------------------------------------------------------------------+
> | The coolest site for free home pages, email, chat, e-cards, movie info..
|
> | http://www.goplay.com - it's time to Go Play!
|
>
+--------------------------------------------------------------------------+
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>