本文整理汇总了PHP中putOutput函数的典型用法代码示例。如果您正苦于以下问题:PHP putOutput函数的具体用法?PHP putOutput怎么用?PHP putOutput使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了putOutput函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getmatches_data
function getmatches_data()
{
$db_connect = connect_db();
$query = "select * from matchfixture WHERE match_date >= CURDATE()";
$result = mysql_query($query, $db_connect) or die(mysql_error());
$i = 1;
$ipl_result = '';
while ($row = mysql_fetch_array($result)) {
/*echo '<br>';
echo '<br> id =' .$row['id'];
echo '<br>match date='.$row['match_date'];
echo '<br>match timing='.$row['match_time'];
echo '<br>team1 name='.$row['team1'];
echo '<br>team2 name='.$row['team2'];
echo '<br>match venue='.$row['venue'];*/
$ipl_result .= $i . ". " . $row['team1'] . " Vs " . $row['team2'] . " on " . date('F j', strtotime($row['match_date'])) . ", " . $row['match_time'] . " at " . $row['venue'] . "\n";
$i++;
}
echo $ipl_result;
if ($ipl_result != "") {
$total_return = $ipl_result;
$source_machine = $machine_id;
$current_file = "/temp/{$numbers}";
file_put_contents(DATA_PATH . $current_file, $total_return);
include 'allmanip.php';
$to_logserver['source'] = 'championsTrophy';
putOutput($total_return);
exit;
}
}
示例2: rand
$q_qoutes = "Select * from quotes_data where typed like '%" . $quotes_word . "%' order by rand() limit 2";
$r_quotes = mysql_query($q_qoutes);
}
if ($quotes_word == "friendship") {
$options_list[] = "gift ideas";
$list[] = array("content" => "friendship idea_gift");
$options_list[] = "celebration ideas";
$list[] = array("content" => "friendship celb idea");
$options_list[] = "Send Mobile Greeting card";
$list[] = array("content" => "__gc__frndshpday__help__");
}
if (mysql_num_rows($r_quotes) > 0) {
$r = mysql_fetch_array($r_quotes);
$total_return = $r["quotes"];
$quotes_id = $r["id"];
if (mysql_num_rows($r_quotes) > 1) {
$options_list[] = "Read another";
$list[] = array("content" => "__quotes__" . $quotes_id . "__" . $quotes_word . "__");
}
}
echo $total_return;
if ($total_return) {
$source_machine = $machine_id;
$current_file = "/temp/{$numbers}";
file_put_contents(DATA_PATH . $current_file, $total_return);
$to_logserver['source'] = 'quote';
include 'allmanip.php';
putOutput($total_return);
exit;
}
}
示例3: trim
}
$cri_res = TRUE;
$hor_res = TRUE;
echo "<h1>SPL CRI</h1>";
if ($cri_res) {
$rr = trim(str_ireplace("'", "", $query_alphabets));
if (preg_match("~\\b^(livescore|commentary|wicket|ipl cri|live scor|ipl scor|score|scor|skore|cri|ckt|ipllive|live cri|ipl live|iplscor|what is the score|live ipl|cricket ipl|sms cri|cricket live|cricket scor|cricketlive|c r i|scr|scorecard|livescore1|livescore2|live score|cric|live cricket|sms cricket|cricket|scores|t20)\\b~si", $rr) || $spell_checked == "india" && $circle_short == "KA") {
// changed on 04/03/2013 as per mail, give cri results for keyword india
echo "<br> CRI MATCH";
echo "<br> CRI MATCH NEXT";
include 'livecricket_new.php';
if (!$live_return) {
include 'livescores.php';
if ($live_return != '') {
$to_logserver['source'] = 'cri';
putOutput($live_return);
exit;
}
}
}
}
include 'doctor.php';
include 'match_namaz.php';
$spelled_qry_alphabets = $spell_checked;
if ($spelled_qry_alphabets == 'keyword' || $spelled_qry_alphabets == 'keywords' || $spelled_qry_alphabets == 'key word' || $spelled_qry_alphabets == 'key words' || $spelled_qry_alphabets == 'sms keywords' || $spelled_qry_alphabets == 'sms keyword') {
$spell_checked = 'keywords';
$req = 'keywords';
$flag_enabled = false;
$free = true;
}
include 'taxiFare.php';
示例4: array
$addon .= "\n{$key}: Unlimited search at Rs {$price_point}/day";
} else {
$addon .= "\n{$key}: Unlimited search at Rs {$price_point}/{$validity} days";
}
// "Subscribe at Rs $pricepoint/$pricepoint days"; //Subscribe option";
$options[] = array("content" => "sub_gyan", "count" => 1);
}
echo "\n<br>no read more<br>\n";
if (strlen($out_text) > 4 && preg_match("~[\\w\\d]+~", $out_text)) {
$query = 'update request set position=-1 where mobile="' . $numbers . '"';
mysql_query($query) or trigger_error("Error in {$query}: " . mysql_error(), E_USER_ERROR);
$content = getLinks($content);
$outs = serialize($options);
file_put_contents(DATA_PATH . "/lists/{$numbers}", $outs);
$lq = "REPLACE INTO lists (machine_id,number,query_id) VALUES ('{$machine_id}','{$numbers}','{$query_id}')";
mysql_query($lq) or trigger_error(mysql_error() . " in {$lq}", E_USER_ERROR);
$out_text = $out_text . $addon;
} else {
echo "\n<br>EMPTY OUTPUT 2<br>\n";
$out_text = 'Sorry, no more data available';
}
if ($has_options) {
$add_on_top = "Options (Eg: Reply with 1 for Next Page):\n";
}
echo "<br>This Is MORE :{$out_text}";
if (!(strpos($out_text, 'NEXT PAGE') > 0)) {
echo "<br>Example replaced";
$out_text = str_replace('Eg: Reply with 1 for Next Page', 'Reply with option, eg. 1', $out_text);
}
putOutput($out_text);
}
示例5: print_r
echo print_r($query_words);
$love_in = implode(' ', $query_words);
if (preg_match("~^((calculate|calc)? ?(fri?e?nd[sz]?|frand[sz]?|fri?e?ndship|frn[sz])) (\\w+) (\\w+)\$~", $love_in, $matches)) {
echo '<br>----------<bR>';
print_r($matches);
echo '<br>---------<br>';
$first_name = $matches[4];
$second_name = $matches[5];
} else {
if (preg_match("~^((calculate|calc)? ?(fri?e?nd[sz]?|frand[sz]?|fri?e?ndship|frn[sz])) ([\\w\\s]+)(and|\\+|\\||x|,|\\*|\\.|%|-|=)([\\w\\s]+)~", $love_in, $matches)) {
echo '<br>_________<br>';
print_r($matches);
echo '<br>_________<br>';
$first_name = $matches[4];
$second_name = $matches[6];
} else {
$first_name = $query_words[1];
$second_name = $query_words[count($query_words) - 1];
echo " <br>first : {$first_name}, {$second_name}<br>";
}
}
include 'lovecalculator.php';
if ($isfs && ($circle == 'UW' || $circle == 'UE')) {
$charge_per_query = 3;
}
$to_logserver['source'] = 'fc';
putOutput($love_result);
exit;
}
}
}