[PHP] File Format

2008-04-11 Thread admin
Wave editor? Here is my dilemma. In php I have written a script to upload a wave file to the server for the C Sharp application to use. No problems on upload or streaming from the file to the web. My issue comes when the format of the wave file is PCM and not CCITT u-Law. The device cannot

Re: [PHP] File Format

2008-04-11 Thread Bojan Tesanovic
I bet there is no native PHP methods for that kind of file, but you can easily check the headers of wave file , you need to have a specification or at least have 3 wave files of PCM and CCITT , compare the first 100 characters of that file, and you will get the clue and logic how to