I have a problem where somebody cancels the process of an image being uploaded, yet it somehow still gets to the server. The PHP code handles the uploaded file, yet the file is corrupt (or incomplete). Later, PHP code tries to do a createimagefromjpg() on the file and everything blows up with...
Hello,
This may be more of a Linux question, but perhaps somebody knows the answer.
I can use getenv() to get environement variables, but I'm not sure where to set environment variables in linux so they can be seen from PHP.
I've tried setting my variable in /etc/profile but it still isn't...
I'm sorry, I just realized my original message got cut off. I do have ignore_user_abort() and set_time_limit(0) at the top of the code. The problem appears to be that something causes the page to refresh as many as ten times, resulting in everyone getting the same email ten times.
The page...
Here's the meat of the code (excluding the actual database query and some debug code):
function sendMail($fromName, $fromEmail, $toEmail, $subject, $msg, $toName="", $content_type="html")
{
if (!empty($fromName) && !empty($fromEmail) && !empty($toEmail) &&!empty($subject))...
Hello,
I have a .php page that loops through a database and sends an email to person. There are over 200 emails sent out. I initially had the problem where the scrip would time out (usually because invalid email addresses take more time), so I set set_time_limit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.