当前位置: 首页>>代码示例>>PHP>>正文


PHP smail::sendFrlProjectsExec方法代码示例

本文整理汇总了PHP中smail::sendFrlProjectsExec方法的典型用法代码示例。如果您正苦于以下问题:PHP smail::sendFrlProjectsExec方法的具体用法?PHP smail::sendFrlProjectsExec怎么用?PHP smail::sendFrlProjectsExec使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在smail的用法示例。


在下文中一共展示了smail::sendFrlProjectsExec方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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() . ') ---------------');
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:hourly_projects_newsletter.php

示例2: rtrim

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->sendFrlProjectsExec();
/*
$list = projects::getFrlExec('2014-01-01',NULL,1,10);
$res = DB::array_to_php($list[1]['projects_list']);
print_r(explode('||', $res[0]));
exit;
*/
//------------------------------------------------------------------------------
$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));
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:0026617.php


注:本文中的smail::sendFrlProjectsExec方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。