TechGuy1 Posted August 2, 2010 Share Posted August 2, 2010 I am developing a php site on my localhost using XAMPP and I am trying to include a file that is clearly where it is supposed to be but I am getting... Warning: include(C:/xampp/htdocs/models/post.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\tumblelog\controller\posts.php on line 3 Warning: include() [function.include]: Failed opening 'C:/xampp/htdocs/models/post.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\tumblelog\controller\posts.php on line 3 Fatal error: Call to undefined function find_post() in C:\xampp\htdocs\tumblelog\controller\posts.php on line 5 My entire file consists of... <?php include($_SERVER['DOCUMENT_ROOT'].'/models/post.php'); $post= find_post(5); ?> suggestions? Link to comment https://forums.phpfreaks.com/topic/209615-failed-to-open-stream-everythings-correct/ Share on other sites More sharing options...
Pikachu2000 Posted August 2, 2010 Share Posted August 2, 2010 The semicolon in there should be a colon . . . (include_path='.;C:\xampp\php\PEAR') Link to comment https://forums.phpfreaks.com/topic/209615-failed-to-open-stream-everythings-correct/#findComment-1094370 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.