Re: reading binary data
| From: | Ferhat BINGOL | Date: | Sat, 31 May 2003 20:29:44 +0000 |
| Subject: | Re: reading binary data | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149676@lists.php.net to get a copy of this message | ||
I do not understand how to use this one from the manual but thanks I am
working on it. Meanwhile I was trying to open the binary with fopen and
unpack 154 bytes from it (it is the firs line accordint to my structure
format.) I got the first letter but afterwords it just gives stupid
characters.
Do you have any comment on this?
And can you point me an example for file_read_contents???
regards
"Evan Nemerson" <evan@coeus-group.com>, iletide sunu yazdi
news:200305311316.20609.evan@coeus-group.com...
> file_get_contents() is binary safe.
>
> $binary_data = file_get_contents("/path/to/file");
>
> php.net/file_get_contents
>
>
> On Saturday 31 May 2003 12:42 pm, Ferhat BINGOL wrote:
> > Hi,
> >
> > I have binary data. I know the format but I do not know how to read it
with
> > PHP. I saw some articles and comments on the manual but it seems taht it
is
> > not enough for me.
> >
> > Anyone to haelp, please?
> >
> > I just nedd a good documentation about it.
> >
> > TIA
>
> --
>
> Everything has a natural explanation. The moon is not a god but a great
rock
> and the sun a hot rock.
>
> -Anaxagorus
>