Re: read file contents to a variable
From: Oli Filth (oli_filth_at_eatspam.hotmail.com)
Date: 11/30/04
- Next message: paul: "Re: read file contents to a variable"
- Previous message: paul: "read file contents to a variable"
- In reply to: paul: "read file contents to a variable"
- Next in thread: paul: "Re: read file contents to a variable"
- Reply: paul: "Re: read file contents to a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 23:47:07 GMT
paul wrote:
> Is there a reason the file() function makes an array? The readfile()
> function is even more strange, it dumps the contents to the screen but
> if you try to set it to a variable, it gives only the number of bytes
> instead of the content. As best I can tell I'd need to use the file()
> function then extract that back by adding each character onto the
> another variable in a couple of loops which seems unnecessarilt complex
> like I must be missing something.
file_get_contents()
Oli
- Next message: paul: "Re: read file contents to a variable"
- Previous message: paul: "read file contents to a variable"
- In reply to: paul: "read file contents to a variable"
- Next in thread: paul: "Re: read file contents to a variable"
- Reply: paul: "Re: read file contents to a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|