(Member since August 24, 2011)
User Profile: zandorUploaded Scripts
I needed something working fine with files, almost like the class CFile of MFC in Visual C++. I developed this class which basically works the same, although not with the same efficiency because of PHP limitations anyway. Developers are now able to read and write data either in text and in binary mode (raw data): now strings, numbers (integer, double, float) and arrays are be read and written. The attached examples cover simple file management, reading of file header structures and data (jpeg and bmp, here). Although such example are rather naive in their conceptions, their goal is to show all the features of this class. Developers would benefit of this class for its potential functionalities and it may open to an easier approach to files in php, while coding advanced applications.
Added on August 24, 2011.