Log in

View Full Version : include_once("../php_files/logout_links.php");



leonidassavvides
08-16-2008, 07:42 PM
I am trying to use

<?php include_once("../php_files/logout_links.php"); ?>
at http://www.poliscarhire.com/
but appears error ... where is the problem ?


Warning: include_once(../php_files/logout_links.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/p/o/l/polisch123/html/index.php on line 342

Warning: include_once() [function.include]: Failed opening '../php_files/logout_links.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/p/o/l/polisch123/html/index.php on line 342

thetestingsite
08-16-2008, 08:15 PM
Check to make sure that you are pointing to the right location of the file in relation to the script you are using it with. Usually, it is best in use absolute paths (like: /home/sites/main/files/mypage.php ) as it avoids these errors.

Hope this helps.