I have two files say : 1. mail.php 2. Mail2.php
Code of mail.php goes like this :
<?
// code to send mail to stccircle@gmail.com
sleep(20);
?>
Code of mail2.php goes like this
<?
// send another mail to stccircle@gmail.com
?>
So, i want to execute both mail.php and mail2.php at once without sleep of mail.php affecting it.. i want to receive two mail at once..
I have tried :
require("mail.php");
require("mail2.php");
and
include("mail.php");
include("mail2.php");
Both codes wait till 20 seconds , i want the next email to be sent immediately after first one.. i want to open both link at once.
iframe fixes everything but cron job dosent support iframe.
Sleep cannot be removed because it is main part of my code.
Any solutions ? Iframe is not supported by cron jobs..
By the way, i want to run script through cron job ...