3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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; } ?>
based on Gj4JX
Output for 5.1.0 - 7.2.0
Warning: require_once(/includes/init.php): failed to open stream: No such file or directory in /in/cVTdr on line 21 Fatal error: require_once(): Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr on line 21
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(/includes/init.php): failed to open stream: No such file or directory in /in/cVTdr on line 21 Fatal error: main(): Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr on line 21
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(/includes/init.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/cVTdr on line 21 Fatal error: main() [http://www.php.net/function.main]: Failed opening required '/includes/init.php' (include_path='.:') in /in/cVTdr on line 21