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


PHP ProcessError函数代码示例

本文整理汇总了PHP中ProcessError函数的典型用法代码示例。如果您正苦于以下问题:PHP ProcessError函数的具体用法?PHP ProcessError怎么用?PHP ProcessError使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: FinishQuery

function FinishQuery($sqlinput, $connection, $trackid)
{
    // parallel assignment short cut
    list($result, $valid) = DoQuery($sqlinput, $connection);
    // show a reply
    ProcessError($connection, $result, $valid, $trackid);
    // close connection
    mysqli_close($connection);
}
开发者ID:Roblix711,项目名称:AssistMe,代码行数:9,代码来源:connection.php

示例2: set_time_limit

 # id of the user
 $some = 1;
 set_time_limit(120);
 # check if we have been "killed"
 $alive = checkLock($send_process_id);
 if ($alive) {
     keepLock($send_process_id);
 } else {
     ProcessError($GLOBALS['I18N']->get('Process Killed by other process'));
 }
 # check if the message we are working on is still there and in process
 $status = Sql_Fetch_Array_query("select id,status from {$tables['message']} where id = {$messageid}");
 if (!$status['id']) {
     ProcessError($GLOBALS['I18N']->get('Message I was working on has disappeared'));
 } elseif ($status['status'] != 'inprocess') {
     ProcessError($GLOBALS['I18N']->get('Sending of this message has been suspended'));
 }
 flush();
 # check whether the user has already received the message
 $um = Sql_query("select entered from {$tables['usermessage']} where userid = {$userdata['0']} and messageid = {$messageid}");
 if (!Sql_Affected_Rows()) {
     if ($script_stage < 4) {
         $script_stage = 4;
     }
     # we know a user
     $someusers = 1;
     $users = Sql_query("select id,email,uniqid,htmlemail,rssfrequency,confirmed,blacklisted from {$tables['user']} where id = {$userid}");
     # pick the first one (rather historical)
     $user = Sql_fetch_row($users);
     if ($user[5] && is_email($user[1])) {
         $userid = $user[0];
开发者ID:alancohen,项目名称:alancohenexperience-com,代码行数:31,代码来源:processqueue.php

示例3: define

<?php

define('ROOT_HOST', '/zodiacool/');
session_start();
if (substr($_SERVER['DOCUMENT_ROOT'], -1) == '/') {
    define('UPLOAD_DIR', $_SERVER['DOCUMENT_ROOT'] . substr(ROOT_HOST, 1) . 'upload');
} else {
    define('UPLOAD_DIR', $_SERVER['DOCUMENT_ROOT'] . ROOT_HOST . 'upload');
}
require_once 'model/database.inc.php';
require_once 'model/global-functions.php';
if (!isset($_REQUEST['section'])) {
    include_once 'controller/home.php';
} else {
    if (isset($_REQUEST['section'])) {
        if (file_exists('controller/' . $_REQUEST['section'] . '.php')) {
            include_once 'controller/' . $_REQUEST['section'] . '.php';
        } else {
            if (file_exists('controller-xhr/' . $_REQUEST['section'] . '.php')) {
                include_once 'controller-xhr/' . $_REQUEST['section'] . '.php';
            } else {
                //ProcessError();
                echo 'not-found';
            }
        }
    } else {
        ProcessError();
    }
}
开发者ID:picaso133,项目名称:Tutorial,代码行数:29,代码来源:index.php

示例4: while

    if (Sql_Has_Error($database_connection)) {  ProcessError(Sql_Error($database_connection)); }
  }
  while ($userdata = Sql_fetch_row($userids)) {
	  $some = 1;
    #set_time_limit(60);
    # check if we have been "killed"
    $alive = checkLock($send_process_id);
    if ($alive)
      keepLock($send_process_id);
    else
      ProcessError("Process Killed by other process");

    # check if the message we are working on is still there
    $res = Sql_query("select id from {$tables['message']} where id = $messageid");
    if (!Sql_Affected_Rows())
      ProcessError("Message I was working on has disappeared");
		flush();

		# check whether the user has already received the message
		$um = Sql_query("select entered from {$tables['usermessage']} where userid = $userdata[0] and messageid = $messageid");
		if (!Sql_Affected_Rows() || $processrss) {
			if ($script_stage < 4)
				$script_stage = 4; # we know a user
			$someusers = 1;
			$users = Sql_query("select id,email,uniqid,htmlemail,rssfrequency,confirmed from {$tables['user']} where id = $userdata[0]");

			# pick the first one
			$user = Sql_fetch_row($users);
			if ($user[5] && is_email($user[1])) {
				$userid = $user[0];    # id of the user
				$useremail = $user[1]; # email of the user
开发者ID:radicaldesigns,项目名称:amp,代码行数:31,代码来源:processqueue.php

示例5: flush

 } else {
 	$report .= " failed\n";
 	print "..failed<br/>\n";
   $mailreport .= " failed\n";
   $mailreport .= $rss->lasterror;
   $failreport .= "\n".$feed[0] . " failed \n". $rss->lasterror;
 }
 flush();
 if ($parseresult) {
   while ($item = $rss->getNextItem()) {
   	set_time_limit(60);
     $alive = checkLock($process_id);
     if ($alive)
       keepLock($process_id);
     else
       ProcessError("Process Killed by other process");
   	$itemcount++;
   	Sql_Query(sprintf('select * from %s where title = "%s" and link = "%s"',
     	$tables["rssitem"],addslashes(substr($item["title"],0,100)),addslashes(substr($item["link"],0,100))));
    	if (!Sql_Affected_Rows()) {
     	$newitemcount++;
       Sql_Query(sprintf('insert into %s (title,link,source,list,added)
       	values("%s","%s","%s",%d,now())',
         $tables["rssitem"],addslashes($item["title"]),addslashes($item["link"]),addslashes($feed[0]),$feed[1]));
       $itemid = Sql_Insert_Id();
       foreach ($item as $key => $val) {
       	if ($item != "title" && $item != "link") {
           Sql_Query(sprintf('insert into %s (itemid,tag,data)
             values("%s","%s","%s")',
             $tables["rssitem_data"],$itemid,$key,addslashes($val)));
        	}
开发者ID:radicalsuz,项目名称:amp,代码行数:31,代码来源:getrss.php

示例6: output

    } else {
        $report .= ' ' . $GLOBALS['I18N']->get('failed') . "\n";
        output('..' . $GLOBALS['I18N']->get('failed') . '<br />');
        $mailreport .= ' ' . $GLOBALS['I18N']->get('failed') . "\n";
        $mailreport .= $rss->lasterror;
        $failreport .= "\n" . $feed[0] . ' ' . $GLOBALS['I18N']->get('failed') . "\n" . $rss->lasterror;
    }
    flush();
    if ($parseresult) {
        while ($item = $rss->getNextItem()) {
            set_time_limit(60);
            $alive = checkLock($process_id);
            if ($alive) {
                keepLock($process_id);
            } else {
                ProcessError($GLOBALS['I18N']->get('Process Killed by other process'));
            }
            $itemcount++;
            Sql_Query(sprintf('select * from %s where title = "%s" and link = "%s"', $tables["rssitem"], addslashes($item["title"]), addslashes($item["link"])));
            if (!Sql_Affected_Rows()) {
                $newitemcount++;
                Sql_Query(sprintf('insert into %s (title,link,source,list,added)
				        	values("%s","%s","%s",%d,now())', $tables["rssitem"], addslashes($item["title"]), addslashes($item['link']), addslashes($feed[0]), $feed[1]));
                $itemid = Sql_Insert_Id();
                foreach ($item as $key => $val) {
                    if ($item != 'title' && $item != 'link') {
                        Sql_Query(sprintf('insert into %s (itemid,tag,data)
						              values("%s","%s","%s")', $tables["rssitem_data"], $itemid, $key, addslashes($val)));
                    }
                }
            }
开发者ID:alancohen,项目名称:alancohenexperience-com,代码行数:31,代码来源:getrss.php


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