Jump to content

PHP scripts die randomly


ntm

Recommended Posts

Hi - any help with the issue outlined below would be gratefully received!

 

I am using a PowWeb server to run a (self-written) mailing list manager, which includes a script to process e-mails in the background (even if the user navigates to a different page or logs out).

 

The script that runs in the background is triggered by using exec(), and the backgrounding works flawlessly. However, the script will sometimes break off and execution will cease. There is never an error message when this occurs.

 

In order to track this down further, I have written a number of scripts and just left them to run in the background. Sometimes they complete successfully, sometimes they do not, and it is simply not clear to me why that should be the case. This occurs independently of how set_time_limit() is set, and also occurs if one uses ignore_user_abort() instead of exec(). As ever, there are no error messages when the scripts terminate.

 

I would be grateful for any sort of help or suggestions whatsoever - I am completely out of ideas, but really need to get these scripts working!

 

 

 

Will.

Link to comment
Share on other sites

Have you tried Powweb's forum or tech support?

 

Yes, but only just now, so no response as yet - I was wondering whether this was likely to be something I don't know about executing scripts for long periods of time (in which case I might get a response here), or whether it was more likely to be something to do with how PW set up PHP (in which case I'd have to hope they could give me an answer).

 

 

 

Will.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.