I'm working on a restful API in php. All is working on localhost, but when I try to put it on my server, I have these errors :
Warning: include_once(/path/to/api/simpletodo_api/Models/TodoItem.php) [function.include-once]: failed to open stream: No such file or directory in /homez.338/login/www/path/to/api/simpletodo_api/index.php on line 6
Warning: include_once() [function.include]: Failed opening '/path/to/api/simpletodo_api/Models/TodoItem.php' for inclusion (include_path='.:/usr/local/lib/php') in /homez.338/login/www/path/to/api/simpletodo_api/index.php on line 6
Here my include :
include_once 'Models/TodoItem.php';
index.php and the "Models" folder are in the same folder (in local and on my server).
I'm pretty sure it is a path error, but I can't find the right one.
Have you an idea of the path ?