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

2011-06-16 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-16 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 matt...@thorslund.uswrote: 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

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

2011-06-16 Thread Mattias Thorslund
I think the documentation is a bit unclear about the fact that colors and channels are the same thing here. The line about bits should probably say bits is the number of bits for each *channel*. Mattias On 06/15/2011 11:11 PM, Nam Gi VU wrote: Thank you Mattias, I'll look at `channels`

[PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! So I'm writing a batch importer and noticed memory usage climbing during script execution. In the debugging effort I've isolated it down to a Doctrine issue. Here's what's going on, I

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

2011-06-16 Thread Brian Dunning
I have heard back from Rackspace and ImageMagick is not going to happen for the time being, but they say Ghostscript is installed. Is it possible to do this completely with GS without ImageMagick? The PDFs are text only. On Jun 15, 2011, at 2:28 AM, Richard Quadling wrote: I use PDF2PNG as

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

2011-06-16 Thread Sean Kenny
Outside the box a bit, but is there perhaps a web-service that does this, something like http://www.thumbalizr.com/ but for PDF files. As long as you had curl or something you would be GTG at that point. -Sean- On Thu, Jun 16, 2011 at 1:48 PM, Brian Dunning br...@briandunning.com wrote: I have

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 12:51 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! So I'm writing a batch importer and noticed memory usage climbing during script execution. In the debugging

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 1:58 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 12:51 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! So I'm writing a batch importer

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

2011-06-16 Thread Curtis Maurand
There's an interesting discussion on this page. http://www.linuxquestions.org/questions/linux-software-2/pdf-to-png-converter-57142/ Cheers, Curtis Sean Kenny wrote: Outside the box a bit, but is there perhaps a web-service that does this, something like http://www.thumbalizr.com/ but for

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
-Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general@lists.php.net Subject: [PHP] Doctrine madness! Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! Yeah,

[PHP] PHP 5.3.7RC1 Released for Testing

2011-06-16 Thread Johannes Schlüter
The first release candidates of 5.3.7 was just released for testing and can be downloaded here: http://downloads.php.net/johannes/php-5.3.7RC1.tar.bz2 (md5sum: 295a457505049cc75d723560715be5d6) http://downloads.php.net/johannes/php-5.3.7RC1.tar.gz (md5sum: 4fd555292ea0a1bc3acd1d3ad4c98c27) The

[PHP] Re: [PHP-DEV] PHP 5.3.7RC1 Released for Testing

2011-06-16 Thread Frédéric Hardy
Hello ! Le 16 juin 2011 à 23:42, Johannes Schlüter a écrit : To find out what was changed since the last release please refer to the NEWS file found within the archive or on http://svn.php.net/viewvc/php/php-src/tags/php_5_3_4RC1/NEWS?revision=HEADview=markup Valid NEWS file for 5.3.7RC1

[PHP] Re: [PHP-DEV] PHP 5.3.7RC1 Released for Testing

2011-06-16 Thread Johannes Schlüter
On Thu, 2011-06-16 at 23:42 +0200, Johannes Schlüter wrote: To find out what was changed since the last release please refer to the NEWS file found within the archive or on http://svn.php.net/viewvc/php/php-src/tags/php_5_3_4RC1/NEWS?revision=HEADview=markup This should - obviously - have

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general@lists.php.net Subject: [PHP] Doctrine madness! Hi gang, If anyone out there has some

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 3:58 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To:

[PHP] Best way to create an image with flowing text?

2011-06-16 Thread Brian Dunning
Hey all - I need to create PNG images with transparent backgrounds that contain text. The text will come from four fields in a database, and needs to be centered, and text wrapped. The fields are going to be of varying lengths, so each block of text (which will be shown in a different font

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
-Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 2:58 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote:

[PHP] implementing dot-net DES encryption by php

2011-06-16 Thread Ali Asghar Toraby Parizy
Hi I have a big problem.I've tried for 2 days but I haven't been able to solve the problem yet. I need to implement dot-net DES encryption in php site. I tired several solutions and the following code is the best that I've seen. But it doesn't work perfect either.

RE: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Jun 16, 2011 5:31 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 2:58 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 7:32 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 2:58 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16,

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
-Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 5:39 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: RE: [PHP] Doctrine madness! On Jun 16, 2011 5:31 PM, Daevid Vincent dae...@daevid.com wrote:

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Jun 16, 2011 6:53 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 7:32 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 2:58 PM To: Daevid Vincent Cc:

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
-Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 5:53 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16, 2011 at 7:32 PM, Daevid Vincent dae...@daevid.com wrote:

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 9:50 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 5:53 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16,

RE: [PHP] Doctrine madness! huh?

2011-06-16 Thread Daevid Vincent
out XSS out of the box. Of course, with diligence and time we can all overcome these things, but that does not mean someone with the ambition to bang together a quick website for a relative understands the real perils they're getting into - I certainly did not. I'm sure Anonymous or

Re: [PHP] Doctrine madness!

2011-06-16 Thread Paul M Foster
On Thu, Jun 16, 2011 at 08:53:18PM -0400, Eric Butera wrote: On Thu, Jun 16, 2011 at 7:32 PM, Daevid Vincent dae...@daevid.com wrote: [snip] I'm sorry but this is absolute rubbish. I used to write my queries by hand, but over time you start to realize that perhaps, maybe writing out

Re: [PHP] Doctrine madness!

2011-06-16 Thread Paul M Foster
On Thu, Jun 16, 2011 at 06:50:00PM -0700, Daevid Vincent wrote: [snip] Name me some LARGE popular sites that use frameworks? I generally agree with your position, but I'm not sure about this one. I'm too lazy/busy to do extensive research, but I believe that Joomla and Drupal are used