Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

RE: [PHP3] $scalar = include(text.inc)? From: Andrew Smith (asmith <email protected>)
Date: 01/20/99

try:

$str = fread(fopen("text.inc", "r"), filesize("text.inc"))

> I can't seem to open up a text file and put it's contents into a scalar
> variable. I've searched through the docs..and still..it doesn't seem to
> work.
>
> <?
> $myText = include(text.inc);
> ?>

Andrew

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>