webForumDet fria alternativet

problem med php 5

1 svar · 499 visningar · startad av dcfc

dcfcMedlem sedan juni 20063 inlägg
#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";
jmeMedlem 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.

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