Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 380 | All time: 6,691 This week: 162![]() |
Version | License | PHP version | Categories | |||
cfile 1.0 | GNU General Publi... | 4.0 | PHP 5, Files and Folders |
Description | Author | |||||||||||||||||||||||
This class can read and write values to binary files. |
|
CFILE (PHP) I needed something that worked fine, almost like the class CFile of MFC in Visual C++. I coded this class which basically does the same, even if not with the same efficiency, due to PHP limitations anyway. Developers can read and write data in both text and binary mode, so that they can store strings, numerical variables (integer and float) and arrays. They can also move the file pointer back and forth for anyneed. The attached examples cover simple file management, reading of file header structures (jpeg and bmp, here). Although they are rather n.aive, the goal of these examples is just to show the features of this class. Developers would benefit of this class for its potential functionalities. |
![]() |
File | Role | Description |
---|---|---|
![]() ![]() |
Output | example picture |
![]() ![]() |
Output | sample picture |
![]() ![]() |
Class | whole package |
![]() ![]() |
Doc. | class members documentation |
![]() ![]() |
Example | simply creating, opening and closing a file |
![]() ![]() |
Example | creating a file, then we write in a double and an integer values |
![]() ![]() |
Example | creating a file, then writing in a string |
![]() ![]() |
Example | reading some fields in the JPEG header |
![]() ![]() |
Example | reading some fields in the BITMAP (.BMP) header |
![]() ![]() |
Example | read some fields in the BITMAP (.BMP) header and we raster an RGB bitmap picture in a HTML table, pixel by pixel |
![]() ![]() |
Example | read some fields in the BITMAP (.BMP) header and we raster an RGB bitmap picture in a HTML table, pixel by pixel |
![]() ![]() |
Example | reading some fields in the PNG header |
![]() ![]() |
Example | reading some fields in the GIF header |
![]() ![]() |
Example | writing & reading an input array into a file |
![]() ![]() |
Example | using static functions |
![]() ![]() |
Output | sample picture |
![]() ![]() |
Data | gif file |
![]() ![]() |
Data | indexed png with palette |
![]() ![]() |
Doc. | Short description of all contents |
![]() ![]() |
Output | sample picture |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
Cfile download page Cfile download page |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Cfile download page Cfile download page |