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] 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] 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] 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] 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] 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] 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] 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: 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 >

[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

<    1   2