Index.php
<?php include './include.php'; ?>
<html> Page data
<?php echo $c5t_output; ?>
</html>
include.php
<?php
/**
* GentleSource Comment Script
*
*/
define('C5T_ROOT', '/comment_script_2.1.2/');
include C5T_ROOT . 'comment.php';
?>
I get this below error 000webhost.com free server when i load the script on a page say index.php but it works perfectly on my local xampp server, even though the file is in the right location with the right files names.
Warning: include() [function.include]: Failed opening '/comment_script_2.1.2/comment.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a5962782/public_html/include.php on line 9
'./comment_script_2.1.2/'
, i.e. prefixed with a dot. As it stands, it expects that folder to be at the root of the filing system, which you may have on your local machine - if so it's in the wrong place - but this is not possible on a shared hosting provider. - halfer