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? Quote Link to comment 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') Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.