Re: [PHP] "calling" one php script from another

2004-03-03 Thread Lucas Gonze
On Wed, 3 Mar 2004, Brian V Bonini wrote: > On Wed, 2004-03-03 at 14:49, Jim & Sara Feldman wrote: > > Does anyone know of a way to jump from one php script to > > another without going through the client browser? The closest I have > > been able to come to doing that is to use nested frames

Re: [PHP] Doing things in the background

2004-03-02 Thread Lucas Gonze
One solution is to use a javascript body.write to output the HTML before you start processing, then do your processing, then issue another body.write to reset the URL of the current page to the result display page. - Lucas On Tue, 2 Mar 2004, Dan McCullough wrote: > > > Have a script where I n

Re: Re[4]: [PHP] Detecting Binaries

2004-02-23 Thread Lucas Gonze
Alternatively, count unigrams in the first 1000 characters and get the euclidean distance to a sample from e.g. an english text, a french text, a chinese text, etc. - Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Safe Mode

2004-02-21 Thread Lucas Gonze
On Saturday, Feb 21, 2004, at 20:17 America/New_York, [EMAIL PROTECTED] wrote: Lucas Gonze wrote: On Saturday, Feb 21, 2004, at 09:18 America/New_York, [EMAIL PROTECTED] wrote: Is it possible to set Apache in such a way that everyting is run under safe-mode, except for a directory and

Re: [PHP] Safe Mode

2004-02-21 Thread Lucas Gonze
On Saturday, Feb 21, 2004, at 09:18 America/New_York, [EMAIL PROTECTED] wrote: Is it possible to set Apache in such a way that everyting is run under safe-mode, except for a directory and everything underneath in a virtual domain? Very likely yes, if your admin permits it. The place to look for

Re: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
On Friday, Feb 20, 2004, at 14:57 America/New_York, Chris W. Parker wrote: how about having your php script execute another php script via the command line? wouldn't this allow the web page to close it's connection while the command line continued to do it's thing unaware of what was going on wit

Re: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
On Friday, Feb 20, 2004, at 14:30 America/New_York, John W. Holmes wrote: Maybe register_shutdown_function()? Hm, so the way this works is that my shutdown function is called after the connection is terminated, and I do the work there... I'm going to implement this and see how well it works. N

Fwd: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
On Friday, Feb 20, 2004, at 13:52 America/New_York, Pablo Gosse wrote: If by terminate the connection you mean stop sending back information to the browser, then perhaps you should look into output control functions: http://ca3.php.net/manual/en/ref.outcontrol.php Well, the best match there is o

Re: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
s/the continuing/then continuing/ "The continuing" sounds like a Steven King title. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
I have a situation where I want to send a cached result back then recalculate the cache. This is necessary because it takes a long time to generate a page. Is there a way for me to return what the browser needs, then terminate the connection without stopping my script? Thanks in advance. - L

Re: Re: [PHP] post variables (SpamEnder: BLOCKED 8BZF-SE44074-lgonze@panix.com) (fwd)

2004-02-17 Thread Lucas Gonze
Is it possible to ban subscribers who issue this kind of auto-response? -- Forwarded message -- Date: Tue, 17 Feb 2004 21:33:04 - From: Alan Hale <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Re: [PHP] post variables (SpamEnder: BLOCKED [EMAIL PROTECTED]) In an

Re: [PHP] post variables

2004-02-17 Thread Lucas Gonze
I can't think of a reason for this, so I would doublecheck your assumptions. There is a $_SERVER variable to check the method. You might want to put the php printenv.php page in place of your current script to see what it says about the request method and POST variables. - Lucas On Tue, 17 Feb

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread Lucas Gonze
One way is to save the time of last access every time a user requests a page, then poll to find users for whom now() - last_access_time > TIMEOUT. - Lucas On Thu, 5 Feb 2004, Christian Calloway wrote: > Damn stateless nature of HTTP, hey everyone, can someone point me or give me > an idea on ho

Re: [PHP] problem identifying $_SERVER['HTTP_REFERER']

2004-02-05 Thread Lucas Gonze
First thing to do is figure out whether the problem is with the referrer var or with your code. Try adding a logger to dump all environment vars to a log file, then check it the next time one of these errors comes up. good luck. - Lucas On Thu, 5 Feb 2004, Pablo Gosse wrote: > Hi all. I've g

Re: [PHP] Threading & PHP

2004-01-24 Thread Lucas Gonze
One possibility is to have the code which first receives the request split it up into subrequests and do HTTP requests for the subrequests. Whether that makes sense depends on whether the overhead of an HTTP transaction is a big part of the execution time of the subrequests. - Lucas On Saturd

[PHP] HEAD method in PHP 4.1.2

2004-01-23 Thread Lucas Gonze
with that a different thing. Thanks in advance. - Lucas Gonze -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php