23 lines
1.1 KiB
PHP
23 lines
1.1 KiB
PHP
|
<?php define('__ROOT__', dirname(__FILE__));
|
||
|
require_once __ROOT__.'/manager/autoloader.php';
|
||
|
|
||
|
ini_set('display_errors',1);
|
||
|
ini_set('display_startup_errors',1);
|
||
|
error_reporting(-1);
|
||
|
|
||
|
|
||
|
|
||
|
// $url = 'http://'.$_SERVER['HTTP_HOST'].'/config/modules.json';
|
||
|
// echo file_get_contents($url);
|
||
|
// Warning: file_get_contents(http://stefproject.xdrm.fr/config/modules.json): failed to open stream: HTTP request failed! HTTP/1.1 412 Precondition Failed in /var/www/vhosts/xdrm.fr/stefproject/test.php on line 10
|
||
|
|
||
|
|
||
|
// $url = 'http://'.urlencode($_SERVER['HTTP_HOST'].'/config/modules.json');
|
||
|
// echo file_get_contents($url);
|
||
|
// Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/vhosts/xdrm.fr/stefproject/test.php on line 15 Warning: file_get_contents(http://stefproject.xdrm.fr%2Fconfig%2Fmodules.json): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/vhosts/xdrm.fr/stefproject/test.php on line 15
|
||
|
|
||
|
|
||
|
$url = 'f/json/modules/conf';
|
||
|
var_dump( \manager\ResourceDispatcher::getResource($url) );
|
||
|
|
||
|
?>
|