den fehler das fopen in bezug auf url untersagt ist, den scheint man beheben zu koennen wenn man eine eigene php.ini mit in das root dir des projektes packt.
lass ich die php.ini weg kommt die gleich gezeigte fehlermeldung. script stelle ich vorran.
mit php.ini laedt er sich zu tode und bringt dann irgendwann interner server fehler 500.
nun der fehler wenn die php.ini nicht dabei ist
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 29
Warning: fopen(http://url.de/?mode=book&author=author&email=email&comment=Testbuchung&eventid=test&vendorid=veid&ordercode=110111 0303&customername=testest&productid=pid&productkey=asdfga&type=sale&value=50&amount=1&status=book&re turntype=code) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 29
Warning: fgets(): supplied argument is not a valid stream resource in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 30
Warning: fclose(): supplied argument is not a valid stream resource in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 31
lass ich die php.ini weg kommt die gleich gezeigte fehlermeldung. script stelle ich vorran.
mit php.ini laedt er sich zu tode und bringt dann irgendwann interner server fehler 500.
PHP-Code:
<?php
$vparams=array(
"mode" => "book",
"author" => "author",
"email" => "email",
"comment" => "Testbuchung",
"eventid" => "test",
"vendorid" => "veid",
"ordercode" => time(),
"customername" => "testest",
"productid" => "pid",
"productkey" => "asdfga",
"type" => "sale",
"value" => "50",
"amount" => "1",
"status" => "book",
"returntype" => "code"
);
function get_vitrado_url()
{
$u="";
foreach($GLOBALS['vparams'] as $k=>$e) $u[] = "$k=" . urlencode($e);
return "http://url.de/?" . implode('&', $u);
}
function vitrado_book()
{
$out="";
$fd=fopen(get_vitrado_url(), 'r');
while($out .=fgets($fd, 1000)) true;
fclose($fd);
echo $out;
}
echo vitrado_book();
?>
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 29
Warning: fopen(http://url.de/?mode=book&author=author&email=email&comment=Testbuchung&eventid=test&vendorid=veid&ordercode=110111 0303&customername=testest&productid=pid&productkey=asdfga&type=sale&value=50&amount=1&status=book&re turntype=code) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 29
Warning: fgets(): supplied argument is not a valid stream resource in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 30
Warning: fclose(): supplied argument is not a valid stream resource in /homepages/26/d76814946/htdocs/engine_UE/modules/vitrado_func.php5 on line 31