coder1986 Posted July 27, 2013 Share Posted July 27, 2013 I'm having a slight issue via a php script which connects to an rtmp server running flashcoms community chat 7 software upon receiving a message this code is initiated static function ReceiveMessage($data) { $f = $data['message']->getAMFData(); echo "rm0msgreceive^".utf8_decode($f['content'])."^{$f['senderID']}^{$f['receiverID']}^{$f['roomID']}\n"; } I'm trying to receive the roomID but my client keeps telling me the roomID index does not exist? however I do see it within the packet using wireshark... here is the packet snippet C..........ReceiveMessage.@K...........message.Ecom.flashdevs.f7.chat.vo.MessageVO.senderID..u1374740155855.receiverID...content.%hello world lol.date..Bt...c...whisper..imageID...imageExtention...youTubeLink...roomID..room1. As you can see at the bottom is the roomID (ROOM1) but does not receive the value? confusing!! Need experienced php coder to assist! thanks! Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/ Share on other sites More sharing options...
requinix Posted July 27, 2013 Share Posted July 27, 2013 It's great that you can read what's in the packet but that doesn't really help with the code much. What's the exact value of $data? As in according to print_r() or var_dump(). Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/#findComment-1442343 Share on other sites More sharing options...
coder1986 Posted July 27, 2013 Author Share Posted July 27, 2013 I'm a noob with php. can you write the code bellow and i'll gladly post the output for you <3333 Thanks a bunch guru! Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/#findComment-1442350 Share on other sites More sharing options...
KevinM1 Posted July 27, 2013 Share Posted July 27, 2013 We're not going to write your code for you. That's not what we do. Now, please answer requinix's question. Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/#findComment-1442351 Share on other sites More sharing options...
coder1986 Posted July 27, 2013 Author Share Posted July 27, 2013 We're not going to write your code for you. That's not what we do. Now, please answer requinix's question. First off, how rude.. Secondly i thought this was a help forum. Thirdly you obviously didn't understand what I was asking for. Fourth I think i'll take my business elsewhere Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/#findComment-1442352 Share on other sites More sharing options...
KevinM1 Posted July 27, 2013 Share Posted July 27, 2013 This is a help forum. We help our members help themselves by answering specific coding questions, so they can see how the answer to that particular problem can be applied in a more global sense. We don't provide solutions to entire problems out of the gate unless they're trivial. Asking one of the team to either write a solution that you can check or rudimentary code that can be learned by visiting the online PHP manual is exactly NOT what we do here. Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/#findComment-1442356 Share on other sites More sharing options...
requinix Posted July 27, 2013 Share Posted July 27, 2013 (edited) Besides, how is anyone supposed to write code for it when we don't even know what the input is? Edited July 27, 2013 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/280555-rtmp-php-parse-help/#findComment-1442360 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.