[PHP-WIN] HOW TO SEND a file from server to client

2005-06-22 Thread Burkhard Herre
hello i want to send a file as response of a skript call from the server to the client. of course i want to use the open connection. like the command: echo("test"); but i dont want to write "test" to the client! i want to send a file. thank you -- PHP Windows Mailing List (http://www.php.n

[PHP-WIN] problems / mistake in pack () and unpack() ???

2005-05-18 Thread Burkhard Herre
hello i use the function pack() and unpack() i have following question: $content = -2147483647; $binarydata = pack("V", $content); ...(fwrite in file) ...(fread from file) $bin_str = fread ($handle, 4); $ascii_array = unpack("V", $bin_str); $ascii_str = $ascii_array[1];

[PHP-WIN] covert binary data with php

2005-05-12 Thread Burkhard Herre
hello i have a problem with reading binary data from a file. i read byte by byte with fread... now i want to convert the 1. byte in an ascii sign. and the next step is to read 2 bytes and convert the 2 bytes input into 1 sign in ascii...(16 bit) and so on. but php convert always 1 byte to 1 sign.