[PHP] Import symbol table into function' scope.

2011-06-15 Thread Дмитрий Степанов
Hello, everybody. Consider the following code: class DB { public function query( $sql) { // ... some "magic" of DB querying } } class DBReader { public $DB;// instance of DB public function __call( $methodName, $args) { return call_user_func_array( array( $this, $methodName), $args); } protected

Re: [PHP] Ftp upload

2011-06-15 Thread Pete Ford
On 15/06/11 01:24, Marc Guay wrote: I bought a 1GB external hard drive for $1000. Did I just choke on my lunch? If that was about 20 years ago, then it would be fine! -- Peter Ford, Developer phone: 01580 89 fax: 01580 893399 Justcroft International Ltd.

Re: [PHP] Convert a PDF to a PNG?

2011-06-15 Thread Richard Quadling
On 15 June 2011 00:00, Tamara Temple wrote: > > On Jun 14, 2011, at 5:48 PM, Brian Dunning wrote: > >> The PDFs are text only (white text on transparent background). I made them >> using the FPDF, which was tedious to set up but works great. I've since >> learned that I need PNG images, not PDFs.

Re: [PHP] Ftp upload

2011-06-15 Thread Marc Guay
> If that was about 20 years ago, then it would be fine! Would have been around 1992, good guesswork! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ftp upload

2011-06-15 Thread Steve Staples
On Wed, 2011-06-15 at 07:42 -0400, Marc Guay wrote: > > If that was about 20 years ago, then it would be fine! > > Would have been around 1992, good guesswork! > ugh, i feel old now (even though i am not)... 20 years ago is 1991... i got my car/motorcycle license in 1992 at the age of 16... --

[PHP] PHP and Windows 7 g6-bit

2011-06-15 Thread Byron Como
Does the precompiled windows binary work on win 7 64? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Import symbol table into function' scope.

2011-06-15 Thread David Harkness
2011/6/15 Дмитрий Степанов > So I wonder if there is any way to import scope (symbol table) into the > method DBReader::readSomething()? > Since you're using call_user_func_array() to call your internal methods already (just to expose protected methods publicly?), you could add $DB as a paramete

[PHP] PHP and Windows 7 64-bit

2011-06-15 Thread Byron Como
Does the precompiled windows binary work on win 7 64? I downloaded the apache installer, works with no problems. I got the php5 VC6 x86 Thread Safe version. It says "x86" so I'm guessing that's the problem. I can't find a current 64-bit version. Error message: Faulting application name: httpd

Re: [PHP] PHP and Windows 7 g6-bit

2011-06-15 Thread Tim Thorburn
On 6/15/2011 11:37 AM, Byron Como wrote: Does the precompiled windows binary work on win 7 64? It does, however if you're using Apache as your webserver, for PHP 5.3+ you won't be able to use the binaries from apache.org for Windows. There is a link to Apache Lounge found here: http://window

Re: [PHP] PHP and Windows 7 g6-bit (Solved)

2011-06-15 Thread Byron Como
On 6/15/2011 1:59 PM, Tim Thorburn wrote: On 6/15/2011 11:37 AM, Byron Como wrote: Does the precompiled windows binary work on win 7 64? It does, however if you're using Apache as your webserver, for PHP 5.3+ you won't be able to use the binaries from apache.org for Windows. There is a link

[PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Nam Gi VU
Hi everyone, In PHP code, given an .png image path, I need to detect the bit-depth of that image. How can I do that? I've tried to use getImageSize() and read the bits as below sample code but it always returns '8' for 24-bits/32-bits image. Please help. class Utils { //Ham de lay bits cua

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Mattias Thorslund
On 06/15/2011 10:11 PM, Nam Gi VU wrote: Hi everyone, In PHP code, given an .png image path, I need to detect the bit-depth of that image. How can I do that? I've tried to use getImageSize() and read the bits as below sample code but it always returns '8' for 24-bits/32-bits image. Reading

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Nam Gi VU
Thank you Mattias, I'll look at `channels` again. Regards, Nam On Thu, Jun 16, 2011 at 1:06 PM, Mattias Thorslund wrote: > On 06/15/2011 10:11 PM, Nam Gi VU wrote: > >> Hi everyone, >> >> In PHP code, given an .png image path, I need to detect the bit-depth of >> that image. How can I do tha