I am wondering if there is an equivalent to C’s fputc in PHP?
I am trying to do the following C code in PHP:
fputc(0x10, fp);
more information on fputc: http://en.wikipedia.org/wiki/C_file_input/output#Writing_to_a_stream_using_fputc
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can write the character code directly to the file: