3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * 接收并保存由机具运营中心发回的有关广告播放的信息 * ============================================================================ * * 版权所有 2014 乐透通(福州)网络科技有限公司,并保留所有权利。 * 网站地址: http://www.lotto-pass.net; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: clin $ * $Id: trans_rec_machine.php 17217 2011-01-19 06:29:08Z clin $ */ define('IN_ECS', true); // echo "<p>ROOT_PATH:".ROOT_PATH; $current_path = dirname(__FILE__); $base_path = substr($current_path, 0, strlen($current_path) - strlen("/webservice")); require_once($base_path . '/includes/init.php'); require(ROOT_PATH . 'includes/cls_json.php'); require_once (ROOT_PATH . 'includes/utilities/dbutilities.php'); require_once (ROOT_PATH . 'includes/webservice/webserviceutilities.php'); $key_names = setAcceptableArgs(); $check_keys = setCheckEmptyKeys(); $recordsTobeSaved = getRequiredArguments($_POST,$key_names); $table_name = "play_log"; if (!is_record_empty($recordsTobeSaved, $check_keys)) { $db_response = insertRecord($recordsTobeSaved, $table_name); // Insert record $recordsTobeSaved['status'] = 1; } header("Expires: date('Y-m-d H:i:s')"); echo getArrayToXML($recordsTobeSaved); function setAcceptableArgs() { //echo "<p>In setAcceptableArgs: "; $acceptable_args = array( "DevSn", "StartTime", "Screen", "File", "Status" ); return $acceptable_args; } function setCheckEmptyKeys() { $non_empty_args = array( "DevSn" ); return $non_empty_args; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require_once(): open_basedir restriction in effect. File(/includes/init.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/cVTdr on line 21 Warning: require_once(/includes/init.php): Failed to open stream: Operation not permitted in /in/cVTdr on line 21 Fatal error: Uncaught Error: Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr:21 Stack trace: #0 {main} thrown in /in/cVTdr on line 21
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
88.63 ms | 402 KiB | 8 Q