[PHP] Re: thread-safety and forking (was: how do you get to do multiple mysql queries concurrently?)

2008-01-30 Thread Per Jessen
Per Jessen wrote: > No you don't. Try this example - think about running the same shell > script twice, but concurrently. Exactly the same code (the shell > script interpreter), but not necessarily thread-safe. Try running two > copies of the mysql cli - same code, but also not thread-safe. Yo

Re: [PHP] Re: how do you get to do multiple mysql queries concurrently?

2008-01-30 Thread Per Jessen
Richard Lynch wrote: > On Mon, January 28, 2008 2:52 pm, Per Jessen wrote: >> True again. However, I was commenting on your assertion that "Process >> forking has EVERYTHING to do with thread safety", which I will stay >> is >> wrong. When you fork another process, you don't need to worry about >

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-30 Thread Per Jessen
Richard Lynch wrote: >> >> OK, what is a 'geometry column' and what is a 'spatial index' ? > > Imagine a single column combining both longitude and latitude. > > Now imagine an index that "knows" about long/lat, and keeps > geographically "close" objects sorted in the index for you. > > Includi

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-30 Thread Per Jessen
Richard Lynch wrote: > On Tue, January 29, 2008 12:48 pm, Per Jessen wrote: >> Robert Cummings wrote: >> >>> Actually, now you made me think on it... the primary reason I >>> disable >>> referrer logging is because it will also pass along lovely >>> information >>> such as any session ID embedded

Re: [PHP] Framed & Linked Content

2008-01-30 Thread Per Jessen
Richard Lynch wrote: > On Tue, January 29, 2008 10:32 am, Per Jessen wrote: >> Robert Cummings wrote: >> >>> The only remedy agaonst remote linking is to embed some kind of >>> expiration in the link that accesses the document. >> >> Wouldn't a check of the REFERER field be enough to disable most

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-30 Thread Per Jessen
Richard Lynch wrote: > Your script is reading the whole file, 64 measly bytes at a time, into > a monstrous string $tmp. > > Then, finally, when you've loaded the whole [bleep] file into RAM in > $tmp, you just echo it out, right? > > Don't do that. > > :-) > > while (!feof($fp)){ > echo fre

Re: [PHP] php embeded in html after first submit html disappear

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 9:09 PM, Janet N <[EMAIL PROTECTED]> wrote: > Because there is not enough to each step to justify a full web page devoted > to it alone, I have decided to keep all steps on one page. even if you manage this with a single php file, you should consider showing only the relevant form

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:29 PM, Casey <[EMAIL PROTECTED]> wrote: > I don't think constructors return the object: im starting to think this as well. what for example happens when there is not __construct() method ? class Test { private $blah = ''; } here $blah is part of a new instance, before __con

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Casey
On Jan 30, 2008 4:53 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Richard Lynch schreef: > > I believe the constructor returns the object created, with no chance > > in userland code of altering that fact, over-riding the return value, > > or any other jiggery-pokery to that effect. > > > > New cau

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 5:13 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > Gentoo is a damn fun distro I must admit.. but using it for anything > besides a development server seems very risky to me. You've got the > Gentoo creat0r running off to lick salt with the M$ weiners up in WA > right when Gentoo wa

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:58 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > besides being a nightmare, portage doesn't answer the question of rolling out > stuff > to multiple machines simultaneously. portage is one of the most elegant software distribution mechanisms ever created. and you dont have to ha

Re: [PHP] first php 5 class

2008-01-30 Thread Jochem Maas
Nathan Nobbe schreef: On Jan 30, 2008 8:21 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: Greg's my hero of the day - even if he has been banging the Ruby drum on the PHP Stage half the night ;-) greg does seem to know a crap-ton about ruby, and gentoo even ;) one thing I would offer as a soluti

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 8:21 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Greg's my hero of the day - even if he has been banging the Ruby drum on > the PHP Stage half the night ;-) greg does seem to know a crap-ton about ruby, and gentoo even ;) > one thing I would offer as a solution to rolling out cod

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 7:58 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > I don't use SPL because it makes my head spin to read it, and I never > ever try to do something as silly as iterate over a *LARGE* array in > end-user pages. are there pages where you iterate over the same 'small' array more than

Re: [PHP] php embeded in html after first submit html disappear

2008-01-30 Thread Janet N
Hi Jochem, Thanks for the prompt response. No I do not want people to fill in both forms at once. I actually have a three step process. I simplified it to two because if I can get two steps to work, I should be good to go. Each step depends on the preceding step having completed successfully.

RE: [PHP] We need PHP/LAMP Developers and Programmers in FL, MD, VA,NY, DC, CA, MA!!!!

2008-01-30 Thread resumes
No, but we will. Thanks. -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 6:44 PM To: PHP Employer Cc: php-general@lists.php.net Subject: Re: [PHP] We need PHP/LAMP Developers and Programmers in FL, MD, VA,NY, DC, CA, MA Hello,

Re: [PHP] Re: how do you get to do multiple mysql queries concurrently?

2008-01-30 Thread Richard Lynch
On Mon, January 28, 2008 2:52 pm, Per Jessen wrote: > True again. However, I was commenting on your assertion that "Process > forking has EVERYTHING to do with thread safety", which I will stay is > wrong. When you fork another process, you don't need to worry about > whether your code is thread-s

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-30 Thread Richard Lynch
On Mon, January 28, 2008 12:37 pm, Per Jessen wrote: > Richard Lynch wrote: > >> On Sat, January 26, 2008 3:45 am, Per Jessen wrote: >>> Nathan Rixham wrote: >>> Back on the mysql side of things, try using geometry columns rather than numerical primary keys, with spatial indexes.. it's a MA

Re: [PHP] Best Approach

2008-01-30 Thread Jochem Maas
it aint PHP ... but I've just fall in love with this: http://www.capify.org/ which won't help if any of the servers in question are windows boxes unless you can install cygwin on there (I'm guessing that would allow it to work). although from reading your post I gather you have to perform the tas

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 12:48 pm, Per Jessen wrote: > Robert Cummings wrote: > >> Actually, now you made me think on it... the primary reason I >> disable >> referrer logging is because it will also pass along lovely >> information >> such as any session ID embedded in the URL. So if you happen to

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 10:55 am, Per Jessen wrote: > Robert Cummings wrote: > >> Referer value is completely worthless. Many people completely >> disable >> it-- such as myself :) > > But most people probably don't - 'coz most don't know how to edit e.g. > the firefox config. > > What is the purp

Re: [PHP] php embeded in html after first submit html disappear

2008-01-30 Thread Jochem Maas
Janet N schreef: is it possible to use "input type="hidden" for signkey form and put it in the register form before the submit button? I'm not sure but is it possible to use hidden to make this work? what are you trying to do? do you want to have people fill in both forms at once then process

RE: [PHP] determine file-upload's tmp-filename

2008-01-30 Thread Richard Lynch
Your first line of PHP code does not execute until PHP finishes accepting the whole file... On Mon, January 28, 2008 2:34 pm, Mr Webber wrote: > > This is the info available to upload scripts > > I have not done this, but am inspired to do it now. My design is to > develop > my own meter by compa

Re: [PHP] curl timeout vs socket timeout

2008-01-30 Thread Richard Lynch
On Mon, January 28, 2008 3:56 pm, Ravi Menon wrote: > 1) curl: > > . > . > curl_setopt( $handle, CURLOPT_TIMEOUT, 1 ); > . > . > $resp = curl_exec($handle) > > > 2) sockets: > > stream_set_timeout( $sock, 1); This is only for AFTER you've already opened up the socket. If you want a timeout on the

Re: [PHP] first php 5 class

2008-01-30 Thread Jochem Maas
Greg Donald schreef: On Jan 30, 2008 1:36 PM, Eric Butera <[EMAIL PROTECTED]> wrote: Thanks for your post. Competition is a good thing. I agree. PHP is the reason we're not all still working out of a cgi-bin. Have you looked at the PHPUnit code coverage reports? Of course it isn't built i

Re: [PHP] Framed & Linked Content

2008-01-30 Thread Michael McGlothlin
The only remedy agaonst remote linking is to embed some kind of expiration in the link that accesses the document. Wouldn't a check of the REFERER field be enough to disable most remote links? (I know it is easily forged.) Normal users also use browsers which choose not to send i

Re: [PHP] Framed & Linked Content

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 10:32 am, Per Jessen wrote: > Robert Cummings wrote: > >> The only remedy agaonst remote linking is to embed some kind of >> expiration in the link that accesses the document. > > Wouldn't a check of the REFERER field be enough to disable most remote > links? (I know it

Re: [PHP] Framed & Linked Content

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 9:21 am, Mike Potter wrote: > There is JavaScript out there, to make a page break out of frames if > someone else has your page in a frame of theirs. > Is it possible to do this with PHP or is that the wrong side of > Server/Client-side operations? PHP is the wrong side of

Re: [PHP] Handle time-outs and errors with file()

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 9:58 am, John Papas wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a way? > > ---

Re: [PHP] php embeded in html after first submit html disappear

2008-01-30 Thread Janet N
is it possible to use "input type="hidden" for signkey form and put it in the register form before the submit button? I'm not sure but is it possible to use hidden to make this work? Thanks. On Jan 30, 2008 3:16 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Janet N schreef: > > Hi there, > > > >

Re: [PHP] first php 5 class

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 1:44 pm, Nathan Nobbe wrote: > when you said earlier that people arent interested in learning > php, this is something i immediately thought of. primarily > because spl debuted in php 5.0 and practically nobody is > using it (which could just be my skewed perception) when

Re: [PHP] Another question about functions...

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 1:39 pm, Jason Pruim wrote: > Okay, so I checked everything I can think of, and it's still > downloading it as an application which means it's downloading the > entire website instead of just the data from the database... Anyone > have any idea what to check? Can you expla

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Jochem Maas
Richard Lynch schreef: I believe the constructor returns the object created, with no chance in userland code of altering that fact, over-riding the return value, or any other jiggery-pokery to that effect. New causes the constructor to be called in the first place, and that's about it. The assi

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Chris
Richard Lynch wrote: On Wed, January 30, 2008 6:19 pm, Chris wrote: I dunno about the OOP instances getting GC'ed, but PHP *definitely* reclaims memory from arrays and strings as they go out of scope, usually. Does anyone else find that funny? :) It definitely does it ... usually ;) Ah well

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 6:19 pm, Chris wrote: > >> I dunno about the OOP instances getting GC'ed, but PHP *definitely* >> reclaims memory from arrays and strings as they go out of scope, >> usually. > > Does anyone else find that funny? :) > > It definitely does it ... usually ;) Ah well. It d

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Richard Lynch
I believe the constructor returns the object created, with no chance in userland code of altering that fact, over-riding the return value, or any other jiggery-pokery to that effect. New causes the constructor to be called in the first place, and that's about it. The assignment to a variable is d

Re: [PHP] first php 5 class

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 1:33 pm, Greg Donald wrote: > On Jan 30, 2008 12:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: >> just pointing out that the rails guys dont have much wiggle room. >> surely, youre familiar w/ this post: >> http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_b

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Chris
I dunno about the OOP instances getting GC'ed, but PHP *definitely* reclaims memory from arrays and strings as they go out of scope, usually. Does anyone else find that funny? :) It definitely does it ... usually ;) -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 12:45 pm, Barney Tramble wrote: > I have a script that I am trying to figure out to allow a remote file > to > be sent to a client's browser. It works ok for small files, but it > keeps > timing out for large files. I don't think it should even take as long > as > it does (

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 9:53 am, Stut wrote: > The "forcing it out of scope" was the crux of my point. However, if > Jochem is right then it's kinda pointless with the current > implementation of the GC, but may become relevant in the new GC. I dunno about the OOP instances getting GC'ed, but PHP

Re: [PHP] first php 5 class

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 10:43 am, Nathan Nobbe wrote: > On Jan 30, 2008 11:38 AM, Greg Donald <[EMAIL PROTECTED]> wrote: > >> If list traffic is any sign, PHP is indeed slowing down from the >> "new >> peeps wanting to learn it" perspective: >> >> http://marc.info/?l=php-general&w=2 > > > interest

Re: [PHP] We need PHP/LAMP Developers and Programmers in FL, MD, VA,NY, DC, CA, MA!!!!

2008-01-30 Thread Manuel Lemos
Hello, on 01/30/2008 01:52 PM PHP Employer said the following: > We need PHP/LAMP Developers and Programmers in FL, MD, VA, NY, DC, CA, MA > > World NetMedia is a world class leader in the development of multimedia > internet sites. We are seeking highly motivated individuals who eat, breath,

Re: [PHP] Sum of results

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 12:58 am, Dax Solomon Umaming wrote: > Hi; > > I've tried Googling this out but failed to search for an answer to > this, so > I'm posting to this list. I'd like to know if there's a way to get the > sum > this results: > > // Results > Individual Daily Consumption > //Ac

[PHP] first php 5 class

2008-01-30 Thread Isaac Gouy
On 2008-01-30 18:29:57 Greg Donald wrote: -snip- > > http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all > That benchmark doesn't include Ruby 1.9. Now that the benchmarks game homepage http://shootout.alioth.debian.org/ includes an A to Z list of language implementations you s

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > up arrow works just fine. history is gone if it crashes, but > if you exit gracefully, eg. with quit, then the history will be there. > maybe youre using debian or some other silly os; i run gentoo Gentoo is a damn fun distro I must admit.. b

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > what id like to know, since you seem to know so much about the ruby on > rails framework, > is, what sort of debugging support is there? this is a weak spot in > php to be sure. ive > tried multiple clients w/ xdebug w/ marginal success at thi

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 4:08 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > php has an interactive shell; php -a. > > therein you have access to anything in the language your > > include path, or the local disc. > > You obviously have a very different u

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > php has an interactive shell; php -a. > therein you have access to anything in the language your > include path, or the local disc. You obviously have a very different understanding of the word "interactive". `php -a` seems pretty broken to me

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:34 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > what id like to know, since you seem to know so much about the ruby on > > rails framework, > > is, what sort of debugging support is there? this is a weak spot in > > php to b

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:22 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > An xhr request needs to be tested to see if your javascript fired when > expected and equally important what was sent back, and did what was > sent back land in the DOM where you expected it to. Rails provides > that and much more.

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:11 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > I think your perception is correct. But Perl is very powerful too, > and not so many people use it for new web development either.. with > list serve traffic being my reference. > > SPL's main drawback for me personally is carpal tu

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 2:55 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > If you only need to test data integrity then it seems good enough. I > > would argue that being able to test xhr requests is a basic > > requirement at this stage in web develo

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 2:38 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > If you like Java then stick with PHP as that's where the syntax is > > clearly headed: > > > > http://www.php.net/~helly/php/ext/spl/ > > ive been studying spl a lot recently.

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:55 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > If you only need to test data integrity then it seems good enough. I > would argue that being able to test xhr requests is a basic > requirement at this stage in web development. how exactly do you test an xhr request? my suspicion

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:33 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 12:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > just pointing out that the rails guys dont have much wiggle room. > > surely, youre familiar w/ this post: > > http://www.oreillynet.com/ruby/blog/2007/09/7_reason

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 1:36 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > Thanks for your post. Competition is a good thing. I agree. PHP is the reason we're not all still working out of a cgi-bin. > Have you looked at the PHPUnit code coverage reports? Of course it > isn't built in like you say, whic

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:38 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > If you like Java then stick with PHP as that's where the syntax is > clearly headed: > > http://www.php.net/~helly/php/ext/spl/ ive been studying spl a lot recently. actually, last night i was benching it against foreach over stand

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > java is awesome, it just hasnt worked out for me career wise. If you like Java then stick with PHP as that's where the syntax is clearly headed: http://www.php.net/~helly/php/ext/spl/ -- Greg Donald http://destiney.com/ -- P

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 2:01 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 12:15 PM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > > It's opinionated software and is certainly not for everyone. > > > > ok it's not for everyone, certainly not for me. but what is it from your > > point of view

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > just pointing out that the rails guys dont have much wiggle room. > surely, youre familiar w/ this post: > http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html One article from one developer means what

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 1:29 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > Ruby has 7 frameworks that I know of: Nitro, IOWA, Ramaze, Cerise, > Ruby on Rails, Merb and Camping. > http://www.nitroproject.org/ > http://enigo.com/projects/iowa/ > http://ramaze.net/ > http://cerise.rubyforge.org/ > http://www.r

RE: [PHP] Help looking for inventory software

2008-01-30 Thread Bastien Koert
check for code / systems on www.hotscripts.com http://sourceforge.net hth bastien> Date: Wed, 30 Jan 2008 19:14:57 +0100> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: [PHP] Help looking for inventory software> > Hello,> > I am sorry if this is appropriate but does anyon

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:15 PM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > It's opinionated software and is certainly not for everyone. > > ok it's not for everyone, certainly not for me. but what is it from your > point of view that makes it a 'more interesting advance'? 1) Test driven development is

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 11:56 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i love how the ruby crew has 1 framework, whereas php has scads. Ruby has 7 frameworks that I know of: Nitro, IOWA, Ramaze, Cerise, Ruby on Rails, Merb and Camping. http://www.nitroproject.org/ http://enigo.com/projects/iowa/ htt

Re: [PHP] first php 5 class

2008-01-30 Thread Zoltán Németh
2008. 01. 30, szerda keltezéssel 12.03-kor Greg Donald ezt írta: > On Jan 30, 2008 11:52 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > oh the Ruby and Rails stuff here it comes again... I really don't see > > why is it a 'more interesting advance in web development technology'... > > and what's

[PHP] Help looking for inventory software

2008-01-30 Thread Zbigniew Szalbot
Hello, I am sorry if this is appropriate but does anyone know php based, open source solution that would enable me to put a system handling inventory (books, booklets). I work for a charity and we are archiving our old products by making a digital archive. So far we have been doing it in Excel but

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 11:52 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > oh the Ruby and Rails stuff here it comes again... I really don't see > why is it a 'more interesting advance in web development technology'... > and what's more important for me, I really don't like it ;) It's opinionated softwa

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 12:45 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 10:43 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > > I would assume it's because there are much more interesting advances > > > in web development technology to focus on elsewhere. > > > > such as ? > > Ruby 1.9,

Re: [PHP] first php 5 class

2008-01-30 Thread Zoltán Németh
2008. 01. 30, szerda keltezéssel 11.45-kor Greg Donald ezt írta: > On Jan 30, 2008 10:43 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > > I would assume it's because there are much more interesting advances > > > in web development technology to focus on elsewhere. > > > > such as ? > > Ruby 1.9,

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 10:43 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > I would assume it's because there are much more interesting advances > > in web development technology to focus on elsewhere. > > such as ? Ruby 1.9, Ruby on Rails 2, Perl6/Parrot. Parrot is particularly interesting, especially

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
> > Indeed. Now, the place where you sleep... is it guarded? well it is, but.. i probly misunderstood some implication in the directions of my virtual fortress and therefore, probly not as well a i suspect ;) -nathan

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: On Jan 30, 2008 11:58 AM, Stut <[EMAIL PROTECTED] > wrote: Ok, I'm going to have to assume you really are as stupid as you seem. If I need to provide an example to demonstrate what I meant I will, but I feel I made it quite clear that my

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Jim Lucas wrote: Stut wrote: Nathan Nobbe wrote: On Jan 30, 2008 11:31 AM, Stut <[EMAIL PROTECTED] > wrote: "I would *just* use a static method" *just* *just* *just* *just* *just* *just* *just* *just* *just* No instance. None. Grrr. here is a mod of

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:58 AM, Stut <[EMAIL PROTECTED]> wrote: > Ok, I'm going to have to assume you really are as stupid as you seem. If > I need to provide an example to demonstrate what I meant I will, but I > feel I made it quite clear that my comment regarding what *I* would do > did not in any wa

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Jim Lucas
Stut wrote: Nathan Nobbe wrote: On Jan 30, 2008 11:31 AM, Stut <[EMAIL PROTECTED] > wrote: "I would *just* use a static method" *just* *just* *just* *just* *just* *just* *just* *just* *just* No instance. None. Grrr. here is a mod of the code you poste

Re: [PHP] php spanish character problem

2008-01-30 Thread Eric Butera
On Jan 30, 2008 12:07 PM, greenCountry <[EMAIL PROTECTED]> wrote: > > hello everyone, > > This is important,I am trying to post some spanish characters from a form on > a page and i am comparing those spanish characters to the same letters on > the same page but on strcmp the return is not zero.I d

[PHP] php spanish character problem

2008-01-30 Thread greenCountry
hello everyone, This is important,I am trying to post some spanish characters from a form on a page and i am comparing those spanish characters to the same letters on the same page but on strcmp the return is not zero.I don't know what is wrong some problem with the post method i guess or strcmp

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 11:43 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 11:38 AM, Greg Donald <[EMAIL PROTECTED]> wrote: > > > If list traffic is any sign, PHP is indeed slowing down from the "new > > peeps wanting to learn it" perspective: > > > > http://marc.info/?l=php-general&w=2 >

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 11:13 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i dont think Registry::getInstance() is really that much overhead; In my initial tests I found that static methods accessing $GLOBALS directly was much faster than using an instance and working on it tucked away in a static variab

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: On Jan 30, 2008 11:31 AM, Stut <[EMAIL PROTECTED] > wrote: "I would *just* use a static method" *just* *just* *just* *just* *just* *just* *just* *just* *just* No instance. None. Grrr. here is a mod of the code you posted w/ a var_du

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:31 AM, Stut <[EMAIL PROTECTED]> wrote: > > "I would *just* use a static method" > > *just* *just* *just* *just* *just* *just* *just* *just* *just* > > No instance. None. Grrr. here is a mod of the code you posted w/ a var_dump() of the local variable $o; _doSomething(); }

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:38 AM, Greg Donald <[EMAIL PROTECTED]> wrote: > If list traffic is any sign, PHP is indeed slowing down from the "new > peeps wanting to learn it" perspective: > > http://marc.info/?l=php-general&w=2 interesting.. I would assume it's becau

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 10:13 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > I love php patterns, but it seems to sort of be dead for years now. > > me too; ya, it is sort of dead, sad, but its still worth a look to people > getting > there feet wet w/ patterns, and occasionally as a point of reference fo

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Jim Lucas wrote: Stut wrote: Nathan Nobbe wrote: On Jan 30, 2008 10:53 AM, Stut <[EMAIL PROTECTED] > wrote: Nathan Nobbe wrote: I never said I wasn't creating an instance in the example I posted. then what exactly did you mean by this? Actually no, I m

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: On Jan 30, 2008 11:21 AM, Stut <[EMAIL PROTECTED] > wrote: Calling a static method does not create an instance of the class. there you go again; calling a static method does create an instance of the class if you call new inside of it :P

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Jim Lucas
Stut wrote: Nathan Nobbe wrote: On Jan 30, 2008 10:53 AM, Stut <[EMAIL PROTECTED] > wrote: Nathan Nobbe wrote: I never said I wasn't creating an instance in the example I posted. then what exactly did you mean by this? Actually no, I mean I would *just*

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:21 AM, Stut <[EMAIL PROTECTED]> wrote: > Calling a static method > does not create an instance of the class. there you go again; calling a static method does create an instance of the class if you call new inside of it :P -nathan

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Jim Lucas
Stut wrote: Nathan Nobbe wrote: On Jan 30, 2008 10:53 AM, Stut <[EMAIL PROTECTED] > wrote: Nathan Nobbe wrote: I never said I wasn't creating an instance in the example I posted. then what exactly did you mean by this? Actually no, I mean I would *just*

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: On Jan 30, 2008 10:53 AM, Stut <[EMAIL PROTECTED] > wrote: Nathan Nobbe wrote: I never said I wasn't creating an instance in the example I posted. then what exactly did you mean by this? Actually no, I mean I would *just* use a static

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:35 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > The only gripe I have about the registry pattern is the lack of code > completion in PDT. ;) heh. does that still blowup when you try to open a file w/ an interface definition? > I love php patterns, but it seems to sort of be

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:53 AM, Stut <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > I never said I wasn't creating > an instance in the example I posted. > then what exactly did you mean by this? Actually no, I mean I would *just* use a static method. If there is no reason to instantiate an object

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: On Jan 30, 2008 10:46 AM, Stut <[EMAIL PROTECTED] > wrote: Nathan Nobbe wrote: Actually no, I mean I would *just* use a static method. If there is no reason to instantiate an object, why would you? you realize you a

[PHP] We need PHP/LAMP Developers and Programmers in FL, MD, VA, NY, DC, CA, MA!!!!

2008-01-30 Thread PHP Employer
We need PHP/LAMP Developers and Programmers in FL, MD, VA, NY, DC, CA, MA World NetMedia is a world class leader in the development of multimedia internet sites. We are seeking highly motivated individuals who eat, breath, and love the work they do. If you like working in a fun, laid-back, ye

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:46 AM, Stut <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > Actually no, I mean I would *just* use a static method. If there is no > reason to instantiate an object, why would you? you realize you are instantiating an class in the code you posted, right

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: It's fairly likely that I'd actually just use a static method here, both your and my code use static methods. it sounds to me like you are using the term 'static method' to mean a static method that has a variable with a reference to an instance of the class that it is

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 9:57 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 8:40 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > > > > On Jan 29, 2008 3:29 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > Still pimping singleton, huh? :) > > > > hell yeah :) > > i looked at the registry cl

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 8:40 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 3:29 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > Still pimping singleton, huh? :) > hell yeah :) i looked at the registry classes you pointed out. you know what funny about the one in solar? they refer to the sam

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 5:56 AM, Stut <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > You posted a singleton pattern. no, what i posted was a simple factory pattern. if you invoke it twice there will be 2 instances of Test in memory, eg. not singleton. $a = Test::getInstance(); $b = Test::getInstance

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 29, 2008 3:29 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 3:19 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > > > Ok, trying to write my first php5 class. This is my first project > > using all OOP PHP5.2.5. > > > > I want to create a config class, which is extended by a

Re: [PHP] Another question about functions...

2008-01-30 Thread Jason Pruim
On Jan 29, 2008, at 4:29 PM, Nathan Nobbe wrote: On Jan 29, 2008 3:53 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: I did as you suggested, and I think I found the reason... I included info for the doctype, and some files that are on all my pages... Once I comment out those lines it works just

  1   2   >