Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Kevin Waterson
This one time, at band camp, Jim Lucas [EMAIL PROTECTED] wrote: I don't get it, why not do this? foreach ( $array AS $row ) { foreach ( $row AS $k = $v ) { if ( ! is_array($v) ) { echo {$k} -- {$v}br/\n; } } } Maybe I am

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Sancar Saran
This is sucks, Those publishers ripping the authors then they blame the pirates... Real steal was %95 of book prices Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Crayon Shin Chan
On Monday 23 July 2007 08:45, Ryan A wrote: Disagree again, if Adam uploads or not, there is a whole bunch of stuff out there that he cant hope to download in a lifetime. It was never mentioned *when* Adam uploaded his file, it could've been when the site first started out and uploads then

Re: [PHP] #2003 - The server is not responding

2007-07-23 Thread Ryan Lao
okay. I'll check on that one. Thanks Daniel Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 7/16/07, Ryan Lao [EMAIL PROTECTED] wrote: I uninstalled my old versions of apache, mysql and php then installed wamp on my computer. everything seems to be working when i access

Re: [PHP] can't open a file

2007-07-23 Thread Crayon Shin Chan
On Monday 23 July 2007 12:23, Ken Tozier wrote: The permissions for the test folder is set to me in a WebServer subfolder on Mac OS X. What exactly does permission ... set to me mean? Do I need to set permissons to something else to get this to work? If so, what permissions should I use?

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread David Powers
Sancar Saran wrote: Those publishers ripping the authors then they blame the pirates... Real steal was %95 of book prices No, the author gets 10% of what the publisher gets. If you look at prices on Amazon or other online bookstores, you'll see that 35-40% discount is common. So, a $40

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Sancar Saran
On Monday 23 July 2007 12:20:50 David Powers wrote: Sancar Saran wrote: Those publishers ripping the authors then they blame the pirates... Real steal was %95 of book prices No, the author gets 10% of what the publisher gets. If you look at prices on Amazon or other online

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread David Powers
Sancar Saran wrote: It was still ripping, They got 18 USD you got 2 USD. Out of that $18, the publisher has to pay the editor, copy editor, technical reviewer, compositor, printer, etc, etc. Unless the book sells several thousand copies, the publisher normally makes a loss. I'm not sure

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Sancar Saran
Hmmm PHP: Order of Objects PHP: Deadly functions Oh never mind. I think we still missing the point main purpose of those books spreading the information. The other things have to come second. Only editor was you. Without you all of them useless. I thing they set up good game here. You

[PHP] PHP not working after Mac 10.3.9 install

2007-07-23 Thread Steve Marquez
Greetings, I am a very novice user of PHP. I have run PHP 4 on my Powerbook for about three years. When I installed Mac OS 10.3.9, PHP does not work. I forgot how to get it running again. Can anyone help me with this? Thanks, -- Steve Marquez

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread David Powers
Sancar Saran wrote: I think we still missing the point main purpose of those books spreading the information. The other things have to come second. Everybody has to eat. If spreading information means I can't afford to eat, I'll stop writing books. It's as simple as that. Ironically

Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Nathan Nobbe
the purpose of an iterator is to allow client code to access the various (aggregate) components of an object while concealing its underlying implementation. the client code only has to know about the iterators interface. thus 1 or more objects that all have a potentially different data profile

Re: [PHP] Creating a text file

2007-07-23 Thread Daniel Brown
On 7/20/07, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, July 19, 2007 8:33 am, Daniel Brown wrote: extract($_POST); You might as well just turn register_globals back ON (bad!) because you've just done a work-around on $_POST that does exactly what register_globals ON does to

Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Larry Garfield
On Monday 23 July 2007, Kevin Waterson wrote: This one time, at band camp, Jim Lucas [EMAIL PROTECTED] wrote: I don't get it, why not do this? foreach ( $array AS $row ) { foreach ( $row AS $k = $v ) { if ( ! is_array($v) ) { echo {$k} -- {$v}br/\n;

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Larry Garfield
On Monday 23 July 2007, David Powers wrote: Sancar Saran wrote: It was still ripping, They got 18 USD you got 2 USD. Out of that $18, the publisher has to pay the editor, copy editor, technical reviewer, compositor, printer, etc, etc. Unless the book sells several thousand copies, the

Re: [PHP] Creating a text file

2007-07-23 Thread Larry Garfield
On Monday 23 July 2007, Daniel Brown wrote: ONLY extract the variables you EXPECT to see in POST. In this case there were only two variables anyway... Yes, but keep in mind, it was a simple, cheap example just to get it to work Out Of The Box(R). I sure as heck don't expect that

Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Nathan Nobbe
On 7/23/07, Larry Garfield [EMAIL PROTECTED] wrote: Isn't that what garbage collection is for? well garbage collection will remove the copy of an array created by foreach, but what Kevin is saying is Iterators dont bother creating a copy of the array, which overall results in memory savings.

[PHP] Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread Jeff Lanzarotta
Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting:

Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Robert Cummings
On Mon, 2007-07-23 at 10:39 -0400, Nathan Nobbe wrote: On 7/23/07, Larry Garfield [EMAIL PROTECTED] wrote: Isn't that what garbage collection is for? well garbage collection will remove the copy of an array created by foreach, but what Kevin is saying is Iterators dont bother creating a

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Crayon Shin Chan
On Monday 23 July 2007 22:26, Larry Garfield wrote: So when does Rasmus Lerdorf and the Deathly Hallows open in theaters? They've got to make Rasmus Lerdorf and the Order of the PHP first. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Robert Cummings
On Mon, 2007-07-23 at 23:09 +0800, Crayon Shin Chan wrote: On Monday 23 July 2007 22:26, Larry Garfield wrote: So when does Rasmus Lerdorf and the Deathly Hallows open in theaters? They've got to make Rasmus Lerdorf and the Order of the PHP first. But before that comes Rasmus Lerdorf and

Re[2]: [PHP] Pirate PHP books online?

2007-07-23 Thread Richard Davey
Hi Crayon, Monday, July 23, 2007, 4:09:57 PM, you wrote: On Monday 23 July 2007 22:26, Larry Garfield wrote: So when does Rasmus Lerdorf and the Deathly Hallows open in theaters? They've got to make Rasmus Lerdorf and the Order of the PHP first. Or even Rasmus Lerdorf and the Order of

[PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread M. Sokolewicz
Jeff Lanzarotta wrote: Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting:

Re: [PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread Jeff Lanzarotta
Oh, OK, thanks. - Original Message From: M. Sokolewicz [EMAIL PROTECTED] To: Jeff Lanzarotta [EMAIL PROTECTED] Cc: PHP General List php-general@lists.php.net Sent: Monday, July 23, 2007 11:32:17 AM Subject: [PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1 Jeff Lanzarotta wrote:

[PHP] Better way to store data in memory?

2007-07-23 Thread Richard Davey
Hi php-general collective, I'm building up some image data in my PHP script (ready for output to the browser). Having to do some complex per pixel manipulation, which is fine - but I'm just wondering is there a quicker / more efficient way of storing the pixel data than in an array? At the

Re: [PHP] Better way to store data in memory?

2007-07-23 Thread Stut
Richard Davey wrote: I'm building up some image data in my PHP script (ready for output to the browser). Having to do some complex per pixel manipulation, which is fine - but I'm just wondering is there a quicker / more efficient way of storing the pixel data than in an array? At the moment I

Re: [PHP] Better way to store data in memory?

2007-07-23 Thread Robert Cummings
On Mon, 2007-07-23 at 17:50 +0100, Richard Davey wrote: Hi php-general collective, I'm building up some image data in my PHP script (ready for output to the browser). Having to do some complex per pixel manipulation, which is fine - but I'm just wondering is there a quicker / more efficient

[PHP] Blackbird ESB released

2007-07-23 Thread Blackbird
Hello all, After 6 months of work (OK, maybe not entirely on this!) we're pleased to release Blackbird, an enterprise service bus for PHP. It's not meant to be a replacement for something like ServiceMix, but it is usable out of the box, and it's very easy to use. (Also, ahem, a lot more

Re[2]: [PHP] Better way to store data in memory?

2007-07-23 Thread Richard Davey
Hi Robert, Monday, July 23, 2007, 6:00:50 PM, you wrote: What kind of data? Can't you just store it in the image? Or a working copy of the image? Afraid not, I'm performing deformation on the data that requires a temporary location before rendering to the final image. If this was a straight

Re: [PHP] Better way to store data in memory?

2007-07-23 Thread Nicolas Quirin
Perhaps, you can use Zend Cache which comes with Zend Framework to store your data, without sharing them, allowing to store them in files or memory (shared or not) in an easy way...I'm intersting on Zend cache for its roadmap and because its a Zend product, like php...best quality and best

[PHP] Re: Better way to store data in memory?

2007-07-23 Thread Al
You might take a look at Imagemagic to see how they do it. Richard Davey wrote: Hi php-general collective, I'm building up some image data in my PHP script (ready for output to the browser). Having to do some complex per pixel manipulation, which is fine - but I'm just wondering is there a

[PHP] Strategy when working with designer(s)?

2007-07-23 Thread Steve Finkelstein
Hi all, This is more of a conceptual based inquiry. I'm currently working on some projects which require me to build system 'X' prior to any (X)HTML/CSS/graphics are available to me. A lot of the time, I just garble up default tables/forms/images to replace what the designer will be

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Jon Anderson
Steve Finkelstein wrote: I was curious how do you folks who strictly do development and not designing, strategically work with a designer in this fashion? Do you have a skeleton you follow or preload some existing templates and then code around that? If there's even a book which focuses on

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Eric Butera
On 7/23/07, Steve Finkelstein [EMAIL PROTECTED] wrote: Hi all, This is more of a conceptual based inquiry. I'm currently working on some projects which require me to build system 'X' prior to any (X)HTML/CSS/graphics are available to me. A lot of the time, I just garble up default

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Simon
I have experience with designers. My suggestion. Don't code anything client-side until they are finished, you will most likely have to change everything. You can do your functionality (login mechanism, password change, listing, query with db, etc...) and be ready for when they give you their

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Ryan A
Hey, clip The same would happen if I did everything myself. Within days of self-publishing a eBook, it would be on a pirate site. At least with a publisher, legal copies do get sold, and I do get a return on the time invested, even though it's not as much as I would like. /clip Also depends on

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Dotan Cohen
On 24/07/07, Ryan A [EMAIL PROTECTED] wrote: Hey, clip The same would happen if I did everything myself. Within days of self-publishing a eBook, it would be on a pirate site. At least with a publisher, legal copies do get sold, and I do get a return on the time invested, even though it's not as

RE: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Anton C. Swartz IV
The way you have suggested is basicly the only way to do this in an efficient manor without building/running a templating engine. This is the method I use if I'm working with only myself or others design is submitted first and made the code to work with the design it makes for the cleanest code

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Ryan A
Hey, Instead of clip tags, I recommend that you configure your mail client to prepend a greater than sign to quotes. It's rather customary, if not standard. Sorry about that, its driving me crazy too. I have to manually do it if I want it (like above). It used to work before... then suddenly

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread tedd
At 12:00 PM +0100 7/23/07, David Powers wrote: The Harry Potter books have sold an estimated 325 million copies. Even if the author gets only 10 cents a book, that adds up to $32.5 million. I'm sure she gets a lot more than 10 cents a book, but it's the number of books sold that makes the real

Re[2]: [PHP] Pirate PHP books online?

2007-07-23 Thread tedd
At 4:21 PM +0100 7/23/07, Richard Davey wrote: Hi Crayon, Monday, July 23, 2007, 4:09:57 PM, you wrote: On Monday 23 July 2007 22:26, Larry Garfield wrote: So when does Rasmus Lerdorf and the Deathly Hallows open in theaters? They've got to make Rasmus Lerdorf and the Order of the

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Blackbird
Steve Finkelstein wrote: Hi all, This is more of a conceptual based inquiry. I'm currently working on some projects which require me to build system 'X' prior to any (X)HTML/CSS/graphics are available to me. A lot of the time, I just garble up default tables/forms/images to replace what the

[PHP] PHP/MYSQL/XML Conversion

2007-07-23 Thread Kelvin Park
I'm trying to convert joined multiple database table to one xml file. Is it more efficient to initially, join multiple (more that 4 tables) together to produce XML file, or convert every table in to XML file and use those XML files to relate data? -- PHP General Mailing List

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Larry Garfield
On Monday 23 July 2007, Simon wrote: I recommend: 1) Designer does his whole job and shows the design when finished and approved 2) Integrator works on making the pages and html without func. 3) Programmer makes the whole thing work. This gives the best feeling to all people involved.

[PHP] header( 'refresh' ), form data, and IE

2007-07-23 Thread Daniel Kasak
Greetings. I have a data entry form that checks for valid input. If something's wrong, it should refresh back to the data entry form, and pass the existing fields back to this form, so the user doesn't have to enter everything again. This is working perfectly in Firefox. It doesn't work at all

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Larry Garfield
On Monday 23 July 2007, tedd wrote: At 4:21 PM +0100 7/23/07, Richard Davey wrote: Hi Crayon, Monday, July 23, 2007, 4:09:57 PM, you wrote: On Monday 23 July 2007 22:26, Larry Garfield wrote: So when does Rasmus Lerdorf and the Deathly Hallows open in theaters? They've got to

Re: [PHP] PHP/MYSQL/XML Conversion

2007-07-23 Thread Nathan Nobbe
certainly it is better to use the database, as it is designed for such a purpose. -nathan On 7/23/07, Kelvin Park [EMAIL PROTECTED] wrote: I'm trying to convert joined multiple database table to one xml file. Is it more efficient to initially, join multiple (more that 4 tables) together to

Re: [PHP] PHP/MYSQL/XML Conversion

2007-07-23 Thread Chris
Kelvin Park wrote: I'm trying to convert joined multiple database table to one xml file. Is it more efficient to initially, join multiple (more that 4 tables) together to produce XML file, or convert every table in to XML file and use those XML files to relate data? I'd make the database do

[PHP] Re: header( 'refresh' ), form data, and IE

2007-07-23 Thread Dan
Then validate the field obviously! $description = ; $categoryid = ; if(isset($_POST['description'])) $description = ?description=$_POST['description']; if(isset($_POST['categoryid'])) { if($description != ) $categoryid = ; else $categoryid = ?; // if a description has been entered you'll need

[PHP] Re: Better way to store data in memory?

2007-07-23 Thread Dan
Is there nothing like streams or a data type that's meant to hold lots of binary data in PHP? - Dan Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi php-general collective, I'm building up some image data in my PHP script (ready for output to the browser). Having

Re: Re[2]: [PHP] Better way to store data in memory?

2007-07-23 Thread Kevin Waterson
This one time, at band camp, Richard Davey [EMAIL PROTECTED] wrote: Afraid not, I'm performing deformation on the data that requires a temporary location before rendering to the final image. you could use the pixel iterator in imagack extension Kevin -- Democracy is two wolves and a lamb

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-23 Thread Daniel Kasak
Thanks for the response Dan. Us Dans have to stick together :) On Mon, 2007-07-23 at 17:37 -0700, Dan wrote: Then validate the field obviously! $description = ; $categoryid = ; if(isset($_POST['description'])) $description = ?description=$_POST['description'];

[PHP] Re: problem with install php 5.2.3 on apache 2.2.4 in windows xp sp2

2007-07-23 Thread Ryan Lao
Arvin, You inserted the codes ?php phpinfo(); ? to your index.html file? arvin lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] system: windows xp sp 2 apache: apache_2.2.4-win32-x86-no_ssl PHP: php-5.2.3-win32-installer.msi i try to install php on my computer so that i

Re: [PHP] Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread Chris
Jeff Lanzarotta wrote: Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting:

Re: [PHP] Re: Better way to store data in memory?

2007-07-23 Thread Nathan Nobbe
On 7/23/07, Dan [EMAIL PROTECTED] wrote: Is there nothing like streams or a data type that's meant to hold lots of binary data in PHP? introduced back in php4; every time you call include, youre invoking an underlying stream functions http://www.php.net/manual/en/ref.stream.php. the big

[PHP] ��������� ����� ����������������� ������� �� ����

2007-07-23 Thread php
rfiyoaq mkgr aosj jihy