Recently I need to write a PHP script that would process a binary file I had created in my VB program. Can PHP do this? and how?
PS: Sorry for my bad English.
dont worry about your english :-) its better then mine :-)
u miht want to see this http://us3.php.net/manual/en/function.fopen. php
simple use fopen("urefile" ,'rb'); - 'b' for binary
It is not so simple as you think. I have a binary file test.qbt that I had created in my VB6 program. In this binary file: simple text, picture and expression. Now i have to read all data from that file and write to browser (text, picture and expression). I dont know how? Please help me!!!!
of course p1.php its only as an example :-)
let me know if that is what you wanted...
No i have a test file: click here: http://www.nguyentiendat.narod.ru/test.qbt that i had created in VB6. Now i have to read it from PHP and show all data in browser (include text, picture,...). I dont know how....
No i have a test file: click here: http://www.nguyentiendat.narod.ru/test.qbt that i had created in VB6. Now i have to read it from PHP and show all data in browser (include text, picture,...). I dont know how....
but how the structure of file looks like? how did you created it? i gues its a kind of the databases...
// send HTTP Body
$fp = fopen($binary_f ile_path, 'rb'); // open file pointer
fpassthru($fp); // dump file stream to http
fclose($fp);
[/PHP]
I think this is a stupid question..but how do you dump it in the http body? I cant seem to make it appear in my webpage. All I get is a corrupted file. Thanks for your reply!
Comment