本文整理汇总了PHP中smail::sendFrlOffer方法的典型用法代码示例。如果您正苦于以下问题:PHP smail::sendFrlOffer方法的具体用法?PHP smail::sendFrlOffer怎么用?PHP smail::sendFrlOffer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类smail
的用法示例。
在下文中一共展示了smail::sendFrlOffer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rtrim
ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_NOTICE);
ini_set('max_execution_time', 0);
ini_set('memory_limit', '512M');
if (!isset($_SERVER['DOCUMENT_ROOT']) || !strlen($_SERVER['DOCUMENT_ROOT'])) {
$_SERVER['DOCUMENT_ROOT'] = rtrim(realpath(pathinfo(__FILE__, PATHINFO_DIRNAME) . '/../../'), '/');
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
//require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/config.php");
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/profiler.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/smail.php';
//------------------------------------------------------------------------------
$results = array();
$profiler = new profiler();
//------------------------------------------------------------------------------
$profiler->start('spam');
//------------------------------------------------------------------------------
$mail = new smail();
$results['cnt'] = $mail->sendFrlOffer();
//------------------------------------------------------------------------------
$profiler->stop('spam');
//------------------------------------------------------------------------------
$results += array('execution_time (sec)' => number_format($profiler->get('spam'), 5));
//------------------------------------------------------------------------------
array_walk($results, function (&$value, $key) {
$value = sprintf('%s = %s' . PHP_EOL, $key, $value);
});
print_r(implode('', $results));
exit;
示例2: rtrim
ini_set('max_execution_time', 0);
ini_set('memory_limit', '512M');
if (!isset($_SERVER['DOCUMENT_ROOT']) || !strlen($_SERVER['DOCUMENT_ROOT'])) {
//@todo: укажите вместо '' относительное положение doc_root например '/../'
$_SERVER['DOCUMENT_ROOT'] = rtrim(realpath(dirname(__FILE__) . ''), '/');
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/config.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/log.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/multi_log.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/smail.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/freelancer.php';
$log = new log('hourly_projects_newsletter/' . SERVER . '-%d%m%Y[%H].log', 'w');
$log->writeln('------------ BEGIN hourly (start time: ' . date('d.m.Y H:i:s') . ') -----');
//if((int)date('H') == 1) {
//$mail = new smail();
//$log->TRACE();
//}
//------------------------------------------------------------------------------
$mail = new smail();
//------------------------------------------------------------------------------
//ответившим на проекты (пока самый тяжелый)
$log->TRACE($mail->sendFrlOffer());
//------------------------------------------------------------------------------
//исполнителям проектов
$log->TRACE($mail->sendFrlProjectsExec());
//------------------------------------------------------------------------------
//работодателям проектов
$log->TRACE($mail->sendEmpPrjFeedback());
//------------------------------------------------------------------------------
$log->writeln('------------ END hourly (total time: ' . $log->getTotalTime() . ') ---------------');