webForumDet fria alternativet

Include problem.....

1 svar · 236 visningar · startad av Snakes

SnakesMedlem sedan okt. 2004392 inlägg
#1

Jag använder en server som har en ur gammal php och jag undrar hur man gör en include från en annan hemsida....

addresen är (fake) http://nogonsida.se/inc/news.txt
jag har testat med
<? include ("http://nogonsida.se/inc/news.txt") ?>
och
$not=@include

men inget funkar

felet är

Warning: main(): URL file-access is disabled in the server configuration in /home/not/not.com/h/b/not/edit.php on line 97

Warning: main([url]http://nogonsida.se/inc/news.txt[/url]): failed to open stream: no suitable wrapper could be found in /home/not/not.com/h/b/not/edit.php on line 97

Warning: main(): Failed opening 'http://nogonsida.se/inc/news.txt' for inclusion (include_path='.:/usr/local/lib/php') in /home/not/not.com/h/b/not/edit.php on line 97
greyhoundMedlem sedan maj 20031 472 inlägg
#2

Funktionen file kan va nått för dig: http://se.php.net/manual/en/function.file.php

123 ms totalt · 3 externa anrop · v20260731065814-full.2b84b982
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
120 ms — hämta tråd, inlägg och bilagor (db)