obejdź błąd allow_url_include = 0

Próbuję dołączyć plik z adresu URL, ale pojawia się następujący błąd.

Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /Applications/MAMP/htdocs/diningtime/testsite/salims/index1.php on line 58

Warning: include(http://localhost/diningtime/templates/100/index.php): failed to open stream: no suitable wrapper could be found in /Applications/MAMP/htdocs/diningtime/testsite/salims/index1.php on line 58

Warning: include(): Failed opening 'http://localhost/diningtime/templates/100/index.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/diningtime/testsite/salims/index1.php on line 58
Test

Zastanawiam się tylko, czy w ogóle istnieje wokół tego?

Mój kod PHP zawiera

<?php include "$location/index.php"; ?>

Dziękuję za pomoc w tej sprawie.

questionAnswers(2)

yourAnswerToTheQuestion