---
title: "problem med php 5"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/149107-problem-med-php-5"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "dcfc"
published: "2006-07-15T17:45:41.000Z"
updated: "2006-07-15T18:14:21.000Z"
replies: 1
views: 501
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/149107-problem-med-php-5"
---

# problem med php 5

## #1 — dcfc, 2006-07-15T17:45Z

Hej jag håller på att grejsar lite i php.

det funkade med php 4 men nu i dag när jag bytte till php 5 så slutade det att funka.

jag får detta fel 

```php
Warning: include(conn.php) [function.include]: failed to open stream: No such file or directory in F:\xampp\htdocs\hosting\index.php on line 4

Warning: include() [function.include]: Failed opening 'conn.php' for inclusion (include_path='.;\xampp\php\pear\') in F:\xampp\htdocs\hosting\index.php on line 4
```

**så då undrar jag om den här raden ska se annars ut ?**

```php
include"conn.php";
```

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

## #2 — jme, 2006-07-15T18:14Z

Warning: include(conn.php) \[function.include\]: failed to open stream: No such file or directory in F:xampphtdocshostingindex.php on line 4 

PHP hittar inte filen.

F:xampphtdocshostingindex.php ser felaktig ut.

ska den vara: 

F:/xampp/htdocs/hosting/index.php

Warning: include() \[function.include\]: Failed opening 'conn.php' for inclusion (include_path='.;\\xampp\\php\\pear\\') in F:\\xampp\\htdocs\\hosting\\index.php on line 4 

Har du filen conn.php i samma katalog som index.php?

Sen brukar jag ha ett mellanrum mellan include och själva filen.

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

---

Tråden på webben: https://www.webforum.nu/amne/php/149107-problem-med-php-5
