Hilfe: HTML-Datei includen

Code:
<?php
$file = file_get_contents('http://adresse.die.du.mir.grad.gesendet.hast');
preg_match('/>([^<]+)</',$file,$out);
$lu_usercount = $out[1];
?>
 
Ich habe da trotzdem ein Problem:

Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/domain.ch/htdocs/includes/lusers.inc.php on line 2

Warning: file_get_contents(http://chat.domain.ch:7500/lusers.htm): failed to open stream: no suitable wrapper could be found in /home/domain.ch/htdocs/includes/lusers.inc.php on line 2


Kann man das irgendwie umgehen?
 
Zuletzt bearbeitet:
Ich habe einen normalen Webspace...

Kann man dieses file_get_contents() nicht irgendwie erlauben, ohne es in der Config von Php zu ändern?
 
Die entsprechende Konfigurationseinstellung ist allow_url_fopen.
Lt. Manual kann diese überall geändert werden, also auch per [phpf]ini_set[/phpf] .Probiers einfach mal aus

Code:
<?php ini_set ('allow_url_fopen', '1');?>
 
Zurück