fread

PHP fread problem

hi guys, ive ran into an issue while creating a PHP telnet script at work to gather network data. as the amount of data returned from the 'Action: Status' command could be of any size... im concerned about using a static number with fread() on line 13. I have also tried using fgets() instead but it only grabs the first line of data (t...

data is null when reding from the .wav file in iphone?

I am trying to read the .wav file and give the raw data as input to the FFT algorithm.I have used the following code to read the .wav file. char ChunkID[4], Format[4], Subchunk1ID[4],Subchunk2ID[4]; int ChunkSize,Subchunk1Size, SampleRate, ByteRate,Subchunk2Size; short AudioFormat, NumChannels, BlockAlign, BitsPerSample; short *Data; /...

Why does fopen produce varying files from calls to Twitter, when the file should be static?

Hi, I am trying to get a list of Twitter users using their API. When I query the API in my browser (http://api.twitter.com/1/statuses/followers.xml?screen_name=atomictom), it returns an XML doc with 100 users, as it should. However, when performing the query from my php file: $file=fopen("http://api.twitter.com/1/statuses/followers.xm...

iPhone Push Notification - Error response problem

Hi all, I've got a problem when checking for a response error after sending a Push Notification. This is my setup: From my PHP server, I'm sending Push Notifications. These notifications are send in the enhanced format, so I can get an error response from the Apple server. For example: Error #7 "Invalid payload size". The way I check ...