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

2012-01-23 Thread Alex Nikitin
Absolutely agreed. A part of what i was asking deals with what he is actually doing... -- The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.  ~Seymour Cray On Mon, Jan 23, 2012 at 9:37 PM, Robert Cummings wrote: > On 12-01-23 09:29 PM, Alex

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

2012-01-23 Thread Robert Cummings
On 12-01-23 09:29 PM, Alex Nikitin wrote: Have you done image processing? In my experience, with image generation, photography and processing, typically you are bound by resources when processing large amount of files than your connection, or sometimes even disk io. It really depends on what yo

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

2012-01-23 Thread Alex Nikitin
Have you done image processing? In my experience, with image generation, photography and processing, typically you are bound by resources when processing large amount of files than your connection, or sometimes even disk io. -- The trouble with programmers is that you can never tell what a program

Re: [PHP] Continued Problems Accessing *.php.net?

2012-01-23 Thread Ghodmode
I don't know what all the fuss was about. What's wrong with you people. That document has been there for so many years... you should have memorized it by now! -- Ghodmode http://www.ghodmode.com On Tue, Jan 24, 2012 at 7:22 AM, Daniel Brown wrote: >    ALL: > >    As you may have noticed, ear

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

2012-01-23 Thread Robert Cummings
On 12-01-23 01:32 PM, Alex Nikitin wrote: If you don't mind me asking, if you want performance, which is kind of essential if you are processing a large number of files, why are you doing it in PHP? -- The trouble with programmers is that you can never tell what a programmer is doing until it’s

[PHP] Continued Problems Accessing *.php.net?

2012-01-23 Thread Daniel Brown
ALL: As you may have noticed, early this morning we got bored and decided to delete php.net from the Internet. After getting an estimated sixteen-point-four trillion complaints, we became overwhelmed and aggravated by your incessant need to RTFM that we pressed CTRL+Z and brought it back.

Re: [PHP] php.net problems?

2012-01-23 Thread Daniel Brown
On Mon, Jan 23, 2012 at 16:30, Donovan Brooke wrote: > > Purple cucumbers are automobile.. Mmm. *nods* Giggity. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: sql injection protection

2012-01-23 Thread Alex Nikitin
Start off with the fact that that article is from 2006, and its written by a programmer... > I was simply asking expert opinion with the intention to learn. > There is so much docs out there (I mean not just out there but at top > security sites like owasp ) that recommends database specific escap

Re: [PHP] php.net problems?

2012-01-23 Thread Donovan Brooke
Daniel Brown wrote: On Mon, Jan 23, 2012 at 15:59, Donovan Brooke wrote: Good!, thought I went insane there for a moment and couldn't remember any of the PHP functions... (as nothing was coming up in the search) ;-) Can't it be both? ;-P Purple cucumbers are automobile.. Donovan

Re: [PHP] php.net problems?

2012-01-23 Thread Daniel Brown
On Mon, Jan 23, 2012 at 15:59, Donovan Brooke wrote: > > Good!, thought I went insane there for a moment and couldn't remember any of > the PHP functions... (as nothing was coming up in the search) ;-) Can't it be both? ;-P -- Network Infrastructure Manager http://www.php.net/ -- PHP Ge

Re: [PHP] php.net problems?

2012-01-23 Thread Donovan Brooke
Daniel Brown wrote: 2012/1/23 Alex Nikitin: Rasmus confirmed that they are having issues with php.net: You can use the sk.php.net mirror while they fix their problems, as well as docs.php.net. We had a primary system failure at the same time as a migration was underway, which led to comp

Re: [PHP] Update mailing list docs - How to unsubscribe?

2012-01-23 Thread Geoff Shang
On Mon, 23 Jan 2012, Matty Sarro wrote: I have been trying to unsubscribe from this list. I've gone through the directions at http://www.ezmlm.org/ezman/ezman1.html as suggested by http://us.php.net/mailing-lists.php. They don't seem to apply for these lists as written (the method listed for uns

[PHP] ArrayInterator always true

2012-01-23 Thread TCP
I'm trying to parse an $agrv array that contain options (without square brackets): [-a "abc" -b "bbc" "bcc" -d "dbc" -e -f] I use ArrayIterator to iterate through the line: - whenever it reach /-\w/, it read through the following qoutes until it reach another /-\w/. The problem is it seems the

[PHP] Update mailing list docs - How to unsubscribe?

2012-01-23 Thread Matty Sarro
Hey everyone, I have been trying to unsubscribe from this list. I've gone through the directions at http://www.ezmlm.org/ezman/ezman1.html as suggested by http://us.php.net/mailing-lists.php. They don't seem to apply for these lists as written (the method listed for unsubscribing involves sending a

Re: [PHP] Re: sql injection protection

2012-01-23 Thread Haluk Karamete
I was simply asking expert opinion with the intention to learn. There is so much docs out there (I mean not just out there but at top security sites like owasp ) that recommends database specific escape solution as one of the viable alternatives. You make it seem like anyone who does not use PDO (

Re: [PHP] php.net problems?

2012-01-23 Thread Daniel Brown
2012/1/23 Alex Nikitin : > Rasmus confirmed that they are having issues with php.net: > > You can use the sk.php.net mirror while they fix their problems, as > well as docs.php.net. We had a primary system failure at the same time as a migration was underway, which led to complications and sub

Re: [PHP] Status from secur...@php.net

2012-01-23 Thread Daniel Brown
On Mon, Jan 23, 2012 at 13:52, TR Shaw wrote: >> >> On Mon, 2012-01-23 at 13:37 -0500, TR Shaw wrote: >>> >>> None of the US and CA sites work anymore Some pages even generate >>> errors on main page others give semi blank pages when searching for a >>> function. CA2 does indeed work:

[PHP] Status from secur...@php.net

2012-01-23 Thread TR Shaw
Begin forwarded message: > Subject: Re: None of the US and CA sites work anymore > > Hi, > > thanks for the notice. We're already aware of it and working on fixing > this within short time. > > https://twitter.com/#!/rasmus/status/161493308416335872 > > johannes > > On Mon, 2012-01-23 at 13

Re: [PHP] php.net problems?

2012-01-23 Thread Alex Nikitin
Rasmus confirmed that they are having issues with php.net: You can use the sk.php.net mirror while they fix their problems, as well as docs.php.net. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.net problems?

2012-01-23 Thread TR Shaw
From here is US everthing is hosed. Also hosed in CA mirrors. Additionally site says last updated today at 15:20:19 MST bit it is 11:40 MST! On Jan 23, 2012, at 1:36 PM, Dpto Ingeniería y Desarrollo wrote: > I can access to php.net, but in the 'Documentation', it doesn't show the View > onli

Re: [PHP] php.net problems?

2012-01-23 Thread Dpto Ingeniería y Desarrollo
I can access to php.net, but in the 'Documentation', it doesn't show the View online formats Also, I can't search a function in "Search for '' in the function list" form. And if i try access to a url from google result, as php.net/manual/es/function.in-array.php i get the following answer: n

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

2012-01-23 Thread Alex Nikitin
If you don't mind me asking, if you want performance, which is kind of essential if you are processing a large number of files, why are you doing it in PHP? -- The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.  ~Seymour Cray -- PHP General Mai

Re: [PHP] php.net problems?

2012-01-23 Thread Alex Nikitin
Can't get to doc at all here... -- The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.  ~Seymour Cray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.net problems?

2012-01-23 Thread Curtis Maurand
Xavier Del Castillo wrote: > On 01/23/2012 10:28 AM, Donovan Brooke wrote: >> Hi, is anyone else having problems with PHP.net today? >> >> Donovan >> >> > Working fine from here. Do a traceroute to the site, it might an ISP > related problem. > > It came right up for me. --Curtis

Re: [PHP] Re: sql injection protection

2012-01-23 Thread Alex Nikitin
There is so much no, answers are in line. > At the top of each php page which interacts with a database, just have > this one liner This has already been mentioned, but again, no, no connection if you are not actually interacting with the database. > $DBH = safe_connection("database_name_here");

Re: [PHP] php.net problems?

2012-01-23 Thread Xavier Del Castillo
On 01/23/2012 10:28 AM, Donovan Brooke wrote: Hi, is anyone else having problems with PHP.net today? Donovan Working fine from here. Do a traceroute to the site, it might an ISP related problem. Xavier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] php.net problems?

2012-01-23 Thread Donovan Brooke
Hi, is anyone else having problems with PHP.net today? Donovan -- D Brooke -- 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 14:34, Matijn Woudt wrote: > On Mon, Jan 23, 2012 at 3:26 PM, Nicholas Cooper > wrote: >> On 23 January 2012 13:26, Matijn Woudt wrote: >>> On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper >>> wrote: Hi everyone, I've created an image in RGB from ImageMagick,

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

2012-01-23 Thread Matijn Woudt
On Mon, Jan 23, 2012 at 3:26 PM, Nicholas Cooper wrote: > On 23 January 2012 13:26, Matijn Woudt wrote: >> On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper >> 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). [wid

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 wrote: > On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper > 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 the file with PHP and unpack

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

2012-01-23 Thread Matijn Woudt
On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper 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 the file with PHP and unpack it I get between 330 and 333, > I guess this difference i

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

2012-01-23 Thread Nicholas Cooper
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 the file with PHP and unpack it I get between 330 and 333, I guess this difference is down to headers and end of file data. Is there anyway to access on