Can someone help me out, I can't figure out what I'm doing wrong to
write to a file in binary mode.
What's wrong with my code?
<?php
$fileName = "something.dat" ;
$string = "This is a string of text";
$ptr = fopen($fileName , 'wb');
fwrite($ptr, $string);
fclose($ptr);
?>
write to a file in binary mode.
What's wrong with my code?
<?php
$fileName = "something.dat" ;
$string = "This is a string of text";
$ptr = fopen($fileName , 'wb');
fwrite($ptr, $string);
fclose($ptr);
?>
Comment