[PHP] Background Process

2009-05-26 Thread shahrzad khorrami
Hi, I have two php scripts, first one must pass arguments to second(the php script that will take more time to process for example inserting 100 records to db, data come from first script). I search around web and find below function: function execInBackground($path, $exe, $additional) {

Re: [PHP] Background Image

2007-08-29 Thread Per Jessen
Jeff wrote: What would be the appropriate way to display this code so the image would not scroll, resize to the users current screen resolutions and just the page content would scroll? This list is about PHP, and probably not the best place to ask that question, but you need to look at CSS

[PHP] Background Image

2007-08-28 Thread Jeff
body background=../images/bkgrnds/shot04.JPG link=#00FF00 vlink=#00 alink=#00 is how I am displaying my background image. This is creating problems for different screen resolutions. What would be the appropriate way to display this code so the image would not scroll, resize to the

[PHP] background process

2005-01-27 Thread mbneto
Hi, I'd like to create a script that will act as a daemon. Now I simply add while() { do stuff } But this forces me to call it script.php . Is there a way to make this work without the -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] background process

2005-01-27 Thread Richard Lynch
mbneto wrote: I'd like to create a script that will act as a daemon. Now I simply add while() { do stuff } But this forces me to call it script.php . Is there a way to make this work without the You're probably better off using when calling it, but: http://php.net/pcntl_fork and

[PHP] background=#

2004-07-22 Thread Tobias Brasier
Hi all-- I subscribed to this list because I have an interest in PHP, but am more of a dabbler than an actual programmer; in other words, I never thought I would be posting a question to the list. So, the following is a problem I send on behalf of one of the programmers in my group, who is

Re: [PHP] background=#

2004-07-22 Thread James E Hicks III
On Thursday 22 July 2004 10:23 am, Tobias Brasier wrote: The problem is that when I run the page, the log files show that the page was accessed twice. I would be looking for calls to the header() function or a meta refresh tag in the header of this program. Maybe there is an include() file

RE: [PHP] background=#

2004-07-22 Thread Michael Sims
Tobias Brasier wrote: I have recently noticed a problem with our code or our webserver (Apache) when I execute a .php file. I have taken all php code out, but within an html td tag, I use background=#, which is used for older browsers such as Netscape 4.7 if you have a background color or

Re: [PHP] background=#

2004-07-22 Thread raditha dissanayake
Tobias Brasier wrote: I have recently noticed a problem with our code or our webserver (Apache) when I execute a .php file. I have taken all php code out, but within an html td tag, I use background=#, which is used for older browsers such as Netscape 4.7 if you have a background color or

Re: [PHP] Background process

2003-08-14 Thread Nicholas Robinson
Are you sending a HTML/HTML after the re-direct to ensure your browser loads the page as soon as possible rather than delaying? If not, this could appear that it isn't re-directing until the script starts. On Wednesday 13 Aug 2003 8:21 pm, Jackson Miller wrote: I have a script that starts a

[PHP] Background process

2003-08-14 Thread Jackson Miller
I have a script that starts a background process and redirects. The background process is a PHP script that is started with an exec() call. The problem is that it is taking a while for the background process to start. The redirect starts working in the browser, but doesn't seem to go until

RE: [PHP] Background process

2003-08-14 Thread Chris W. Parker
Jackson Miller mailto:[EMAIL PROTECTED] on Wednesday, August 13, 2003 12:21 PM said: Is there a faster way to start a background process? Maybe you can pause your script somehow before you execute the redirect? Also, are you sure that it's not redirecting until the script starts? Maybe

[PHP] Background process (sending mails)

2002-08-21 Thread Pupeno
I know this issue have been discussed a lot of times but I checked a lot of archives and documents and I couldn't find any solution. What I want to do is send a lot of mails (belive me, it's not spamming) and I thought about running the process of sending mails in background (detached from the

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Rasmus Lerdorf
Simply configure your MTA to queue requests coming from PHP. Your php.ini file has the sendmail invocation line that is used by PHP's mail() function. Most MTA's out there have a sendmail-like interface and most have a way to tell it to simply queue the request and return immediately. For

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Pupeno
Rasmus Lerdorf wrote: Simply configure your MTA to queue requests coming from PHP. Your php.ini file has the sendmail invocation line that is used by PHP's mail() function. Most MTA's out there have a sendmail-like interface and most have a way to tell it to simply queue the request and

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Rasmus Lerdorf
You don't need to modify sendmail's config, you simply need to modify how you are calling sendmail from PHP. Chances are the server you are on already flushes the queue occasionally. You'd need to try to figure out how often, perhaps simply by trial and error. Since you have no control over

[PHP] Background Processing

2002-04-24 Thread Richard Perez
Hi people!! I'm trying to find a way to handle this but I don't come up with anything. I need to execute a query to a DB using PHP. The thing is that the query takes 0.5 hours to execute and I can't wait that time with the browser opened in that page. What I want to do is to execute a PHP code

Re: [PHP] Background Processing

2002-04-24 Thread otto
- Original Message - From: Richard Perez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 4:32 PM Subject: [PHP] Background Processing Hi people!! I'm trying to find a way to handle this but I don't come up with anything. I need to execute a query to a DB

Fw: [PHP] Background Processing

2002-04-24 Thread otto
:) Try this http://www.naken.cc/mikehup.php Otto - Original Message - From: Richard Perez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 4:32 PM Subject: [PHP] Background Processing Hi people!! I'm trying to find a way to handle this but I

RE: [PHP] Background Processing

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
: Wednesday, April 24, 2002 5:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Background Processing Hi people!! I'm trying to find a way to handle this but I don't come up with anything. I need to execute a query to a DB using PHP. The thing is that the query takes 0.5 hours to execute and I can't

RE: [PHP] Background Processing

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Maxim Maletsky (PHPBeginner.com) wrote: You can use PHP-GTK in the background. Just call it with cron. Alternatively, you can set PHP to keep executing on the user exit. What was that function called? on_*_shutdown()? Could be dangerous though, what if it goes to

[PHP] Background processing / forking

2001-03-06 Thread Natasha
hey, i wanted to know if there's a fork function in php, cause i don't see it in the manual. I basically wanna call a C program from PHP. Now the problem is that the C program will be running for longs periods like maybe half or even an hour. So i would basically want to just execute the

Re: [PHP] Background processing / forking

2001-03-06 Thread Mukul Sabharwal
Hi Natasha, Well the probably easiest shitty way to do it is: exec("theprogram 1 /some/file 21 "); would exec()ute theprogram and will put it's output in /some/file and stderr's output also in the /some/file, and at last signifies the backgroundness of the program. however as you mentioned

Re: [PHP] Background processing / forking

2001-03-06 Thread Anders Johannsen
Now the problem is that the C program will be running for longs periods like maybe half or even an hour. So i would basically want to just execute the program and return control to the script immediately so that the c program continues it's work. it's easy with forking. but i dont see it

Re: [PHP] background processing / forking

2001-03-06 Thread Mukul Sabharwal
Disclaimer: The following post contains C code for *nix! Viewer discretion recommended! Hi, I'm back, I couldn't resist you mentioning C, so as you did, big fault, the code that follows is probably much better than exec, as an stderr terminal will still be attached, but anyway: