[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path Zen Cart 源代码 curltester.php
<?php
/*
* @package utilities
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: curltester.php 15778 2010-04-02 02:21:17Z drbyte $
*
* This utility is simply intended to test whether the host server has the ability to use CURL to connect to external servers in order to send communications, such as for PayPal transactions
*/
error_reporting(E_ALL);
$_POST = array();
if (isset($GLOBALS)) unset($GLOBALS);
if (isset($_GET)) unset($_GET);
if (isset($_REQUEST)) unset($_REQUEST);
$data = "field1=This is a test&statuskey=ready";
// enclose URL in quotes so it doesn't get converted to a clickable link if posted on the forum
if (isset($commInfo['url'])) $commInfo['url'] = '"' . $commInfo['url'] . '"';
// Handle results
echo ($errnum != 0 ? '<br />' . $errnum . ' ' . $errtext . '<br />' : '');
if ($url == $defaultURL) {
echo $result;
} else {
if ($commInfo['http_code'] == 200) echo 'COMMUNICATIONS TEST OKAY.<br />You may see error information below, but that information simply confirms that the server actually responded, which means communications is open.';
}
echo '<pre>' . print_r($commInfo, true) . '</pre><br /><br />';
if ($url != $defaultURL) echo $result . '<br>EOF';