php3-list | 199901
Date: 01/25/99
- Next message: Tommy Williams: "Re: [PHP3] Regex needed"
- Previous message: Adam Sherman: "Re: [PHP3] apxs problem"
- In reply to: Richard Lynch: "RE: [PHP3] $scalar = include(text.inc)?"
- Next in thread: David Sean McNicholl: "[PHP3] PHP and Ibill."
- Reply: David Sean McNicholl: "[PHP3] PHP and Ibill."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Monday, January 25, 1999, 11:13 AM -0600 Richard Lynch
<lynch <email protected>> wrote:
> Okay, so use readfile().
Because it doesn't do what the original poster asked.
He wanted to read a file into a string. readfile() outputs the file to
stdout and returns the number of bytes read, so that $scalar =
readfile('text.inc') would end up with the size of the file 'text.inc' in
$scalar rather than its contents.
-- Tommy Williams <mailto:Tommy.Williams <email protected>> <URL:http://www.mc.Vanderbilt.Edu/~tommy/>-- 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>
- Next message: Tommy Williams: "Re: [PHP3] Regex needed"
- Previous message: Adam Sherman: "Re: [PHP3] apxs problem"
- In reply to: Richard Lynch: "RE: [PHP3] $scalar = include(text.inc)?"
- Next in thread: David Sean McNicholl: "[PHP3] PHP and Ibill."
- Reply: David Sean McNicholl: "[PHP3] PHP and Ibill."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

