[PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Nicholas Cooper
only the useful image bits, those 48 numbers? Thank you, Nicholas Cooper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Nicholas Cooper
On 23 January 2012 13:26, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper nicho...@twpagency.com wrote: Hi everyone, I've created an image in RGB from ImageMagick, it's 4 by 4 so I'm expecting 48 numbers (4*4*3). [width*height*(R,G,B)] When I read

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Nicholas Cooper
On 23 January 2012 14:34, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jan 23, 2012 at 3:26 PM, Nicholas Cooper nicho...@twpagency.com wrote: On 23 January 2012 13:26, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper nicho...@twpagency.com wrote: Hi

[PHP] If Statements Array and Notice Undefined Index

2011-03-31 Thread Nicholas Cooper
Good day, I have three arrays A, B and C. Anyone of them might not have the 'id' key set which will give the Notice Undefined index: id. I just wanted to know what the correct approach to this problem would be; without making the code overly complicated to read by introducing a number of if

Re: [PHP] If Statements Array and Notice Undefined Index

2011-03-31 Thread Nicholas Cooper
On 31 March 2011 15:53, Stuart Dallas stu...@3ft9.com wrote: On Thursday, 31 March 2011 at 15:45, Nicholas Cooper wrote: Good day, I have three arrays A, B and C. Anyone of them might not have the 'id' key set which will give the Notice Undefined index: id. I just wanted to know what