webForumDet fria alternativet
Logga in / Bli medlem

problem med php 5

PHP

1 svar · 501 visningar · startad av dcfc

Medlem sedan juni 20063 inlägg
Trådstart#1

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

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 ?

include"conn.php";
Medlem sedan maj 20012 237 inlägg
#2

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.

257 ms totalt · 4 externa anrop · v20260731065814-full.51f67c91
122 ms — deklarationer (db)
0 ms — hämta statistik (cache)
132 ms — hämta tråd, inlägg och bilagor (db)
122 ms — ändringar (db)