#1
  1. No Profile Picture
    Patrice STEIBEL
    Guest
    Devshed Newbie (0 - 499 posts)
    Hello everybody,
    i am still trying to validate a file of email adresses,using the validateEmail script ,but it doesn't seem to work well enough on a long list of addresses,the processing stops with this message:
    Fatal error: Maximum execution time of 30 seconds exceeded in validateEmail.php3 on line 79
    here's a copy of the part of the program involved
    fputs ( $fp, "RCPT TO: <$email>n" );

    $output = fgets ( $fp, 2000 );

    if ( ereg ( "^25[0-9]", $output ) )
    { $return[0] = true; }
    else
    {
    $return[0] = false;
    $return[1] = $output;(line 79)

    How can i bypass this problem or are there a
    more efficient routine to test a list of email addresses?
    Thanks by advance
    Patrice
  2. #2
  3. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    There may be a more efficient way, but there is an easy solution. Add this line to your script:

    set_time_limit(n);

    Where n is the time in seconds you wish to allow the script to run. The default is 30 seconds which is why you are getting that error.
  4. #3
  5. No Profile Picture
    Patrice STEIBEL
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi,
    thanks for the tip,but even if i set up a new time limit for the instruction but
    i reach the time limit from the server,does anyone have a better program to test
    the validity of emails?

Similar Threads

  1. Javascript email validation using regular expression
    By PHPAddict in forum JavaScript Development
    Replies: 3
    Last Post: February 4th, 2004, 12:03 PM
  2. best way to send email validation
    By njcallen in forum PHP Development
    Replies: 2
    Last Post: January 28th, 2004, 10:02 AM
  3. Replies: 3
    Last Post: January 8th, 2004, 07:16 PM
  4. email validation using eregi
    By TweetyPie in forum PHP Development
    Replies: 2
    Last Post: November 18th, 2003, 12:44 PM
  5. PDFlib problem with email addresses
    By evbuk in forum PHP Development
    Replies: 0
    Last Post: October 22nd, 2003, 04:26 PM

IMN logo majestic logo threadwatch logo seochat tools logo