---
title: "Include problem....."
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/114640-include-problem"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "Snakes"
published: "2004-10-28T20:56:51.000Z"
updated: "2004-10-28T21:16:46.000Z"
replies: 1
views: 241
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/114640-include-problem"
---

# Include problem.....

## #1 — Snakes, 2004-10-28T20:56Z

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
```

Permalänk: https://www.webforum.nu/p/114640

## #2 — greyhound, 2004-10-28T21:16Z

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

Permalänk: https://www.webforum.nu/p/1473010

---

Tråden på webben: https://www.webforum.nu/amne/php/114640-include-problem
