Jump to content

failed to open stream (everythings correct)


TechGuy1

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.