![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 115 Pomógł: 8 Dołączył: 8.06.2014 Ostrzeżenie: (0%) ![]() ![]() |
Mam taki problem, gdy podam taką ścieżkę:
include('plik.php'); to działa, a gdy taką: include('http://localhost/strona/plik.php'); to nie trybi. Wie ktoś dlaczego? Na dodatek sypie mi takie błędy: Cytat Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in E:\Xampp\htdocs\strona\index.php on line 3
Warning: include(http://localhost/strona/plik.php): failed to open stream: no suitable wrapper could be found in E:\Xampp\htdocs\strona\index.php on line 3 Warning: include(): Failed opening 'http://localhost/strona/plik.php' for inclusion (include_path='.;E:\Xampp\php\PEAR') in E:\Xampp\htdocs\strona\index.php on line 3 Fatal error: Class 'Template' not found in E:\Xampp\htdocs\strona\index.php on line 6 Ten post edytował Kloc 5.12.2014, 18:32:46 -------------------- Kloc = Kolor
Obama !== Murzyn Obama === Kloc Jak Ci pomogłem to daj Pomógł, tu nie chodzi o te Pomógł, bo to do niczego nie potrzebne, ale daj! :D |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 821 Pomógł: 111 Dołączył: 11.09.2006 Skąd: Biała Podlaska Ostrzeżenie: (0%) ![]() ![]() |
Wcale się nie dziwię, że niedziała. To tak jak byś chciał dać:
Cytat If "URL include wrappers" are enabled in PHP, you can specify the file to be included using a URL (via HTTP or other supported wrapper - see Supported Protocols and Wrappers for a list of protocols) instead of a local pathname. If the target server interprets the target file as PHP code, variables may be passed to the included file using a URL request string as used with HTTP GET. This is not strictly speaking the same thing as including the file and having it inherit the parent file's variable scope; the script is actually being run on the remote server and the result is then being included into the local script. Ten post edytował Rysh 5.12.2014, 18:45:51 -------------------- |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 115 Pomógł: 8 Dołączył: 8.06.2014 Ostrzeżenie: (0%) ![]() ![]() |
A można to jakoś inaczej rozwiązać?
-------------------- Kloc = Kolor
Obama !== Murzyn Obama === Kloc Jak Ci pomogłem to daj Pomógł, tu nie chodzi o te Pomógł, bo to do niczego nie potrzebne, ale daj! :D |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 4 291 Pomógł: 829 Dołączył: 14.02.2009 Skąd: łódź Ostrzeżenie: (0%) ![]() ![]() |
file_get_contents() / cURL
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 15.05.2025 - 07:56 |