Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Write to binary file
December 8, 2007, 8:47 pm
rate this thread
Re: Write to binary file
You misunderstand binary I think. It just means no newline 'translation'=
The string is here is ascii text (well, it might have characters outside=
ascii depending on the string the particular character encoding used). S=
in the file will be what you told $string is. Checking a hex editor, the=
contents of your file should prove to be exactly the same bytes as the =
string in your script. In C data types are handled quite more complex =
(well, under water this is also true for PHP, but you needn't concern =
yourself with it while writing in PHP), possibly generating a different =
representation when outputting the raw data.
What is the problem/issue you are actually facing that you want this =
- IvÃ¡n SÃ¡nchez Ortega
December 8, 2007, 9:07 pm
- » Curl with PHP Following Redirects and Forwarding Everything..
- — Previous thread in » PHP Scripting Forum