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