לא מצליח לעבוד עם הפונקציה הזאת, זה מדפיס לי כל הזמן שגיאות.
כשאני מריץ את הקוד הבא:
PHP קוד:
<?php
$a = file_get_contents('http://www.php.net/');
echo $a;
?>
זה מציג לי:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in XXX on line 2
Warning: file_get_contents(
http://www.php.net/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in XXX on line 2
יש למישהו מושג מה הבעיה עם הקוד? או שהבעיה היא לא עם הקוד בכלל?