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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -