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