string - PHP problem writing consecutive single quotes? -
i can't manage write consecutive single-quotes on server; simple script output's single quote file:
<?php $handle = fopen('testwritedoublesinglequote.dat', 'wb'); fwrite($handle, "''"); // writes ' once! fclose($handle); ?>
i've tried pack() function well, same result:
<?php $handle = fopen('testwritedoublesinglequote.dat', 'wb'); fwrite($handle, pack('nnn', 0x6061, 0x6127, 0x2763)); // writes 0x27 once! fclose($handle); ?>
is normal? magicquotes?
did try four? fwrite($handle, "''''");
Comments
Post a Comment