用PHP读取二进制文件 [英] Reading Binary Files in PHP

查看:127
本文介绍了用PHP读取二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我需要编写一个PHP脚本来处理我在VB程序中创建的二进制文件。 PHP可以这样做吗?怎么样?

PS:抱歉我的英语不好。

解决方案

不要担心你的英语:-)它比我的好: - )


u miht想要看到这个http://us3.php.net/manual/en/function.fopen.php

简单使用fopen(" ; urefile" '' RB ''); - ''b''用于二进制



不要担心你的英语:-)它比我的更好:-)


u miht想要看到这个http://us3.php.net/manual/en/function.fopen.php

简单使用fopen(" urefile",' 'RB''); - 'b''表示二进制



这并不像你想象的那么简单。我有一个我在VB6程序中创建的二进制文件test.qbt。在这个二进制文件中:简单的文本,图片和表达。现在我必须从该文件中读取所有数据并写入浏览器(文本,图片和表达式)。我不知道怎么样?请帮帮我!!!!


[PHP]

<?php

session_start();

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


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!!!!


[PHP]
<?php
session_start();


这篇关于用PHP读取二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆