---
title: "Problem med fel include_path"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/103925-problem-med-fel-include-path"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "Del Pero"
published: "2004-05-19T15:17:44.000Z"
updated: "2004-05-19T16:04:26.000Z"
replies: 1
views: 234
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/103925-problem-med-fel-include-path"
---

# Problem med fel include_path

## #1 — Del Pero, 2004-05-19T15:17Z

Jag har ett väldigt irriterande problem med include_path-inställningen. Har precis börjat med att utforska olika PEAR-packages och försöker få HTML_QuickForm att fungera. Installationen gick ok utan problem men när jag försöker inkludera filen så får jag följande fel:

**Warning: main(HTML/QuickForm.php): failed to open stream: No such file or directory in c:\\program\\apache group\\apache\\htdocs\\index.php on line 4

Fatal error: main(): Failed opening required 'HTML/QuickForm.php' (include_path='.;c:\\php4\\pear') in c:\\program\\apache group\\apache\\htdocs\\index.php on line 4**

Det märkliga är att include_path är INTE satt till ".;c:\\php4\\pear". Såhär ser min php.ini ut:
**; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\\path1;\\path2"
;include_path = ".;c:\\php\\includes"
include_path = ".;c:\\php\\pear"**

Rad 4 ser ut enligt följande: 

```php
require_once "HTML/QuickForm.php";
```

PHP är installerat i c:\\php
Jag kör XP Home med Apache 1.3.29 och PHP 4.3.6.

Någon som vet hur man löser detta?

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

## #2 — Del Pero, 2004-05-19T16:04Z

Jag måste ha gjort något fel vid installationen av PHP. 
Avinstallerade och installerade om, nu fungerar det. :)

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

---

Tråden på webben: https://www.webforum.nu/amne/php/103925-problem-med-fel-include-path
