23-Jun-2012, 11:20 AM
Hi all. I am reasonably proficient in PHP and HTML, but I recently became unhappy with one server I was using. I created an account on x10hosting.com, and all seemed to be well until I tried to use the Commentics script. I didn't use it on my old server, but thought it would be good to implement for the new one. The script worked fine during local testing using a PHP module installed in Apache. When I uploaded what I had done to the new server, I got:
I have searched this forum for similar errors, but I tried the fixes that were posted, except for one integration code post I didn't follow. I didn't see anyone having the problem I was having, so I thought I should post it.
You guys familiar with CGI servers can probably solve this one quickly. My sever has a "cgi-bin" folder, and I've read online posts about having to run PHP scripts from that folder. I really don't understand running PHP as a CGI module. Will I have to run it from that folder? I don't really understand, if so, since my site's pages have a PHP extenstion, and they run just fine.
Anyway, to further try to chase down the problem, I made a script to test to see if the file is there:
Quote:Fatal error: require_once() [function.require]: Failed opening required 'includes/variables/set_variables.php' (include_path='.:/usr/local/php53/pear') in /home/behindth/public_html/comments/includes/commentics.php on line 31
I have searched this forum for similar errors, but I tried the fixes that were posted, except for one integration code post I didn't follow. I didn't see anyone having the problem I was having, so I thought I should post it.
You guys familiar with CGI servers can probably solve this one quickly. My sever has a "cgi-bin" folder, and I've read online posts about having to run PHP scripts from that folder. I really don't understand running PHP as a CGI module. Will I have to run it from that folder? I don't really understand, if so, since my site's pages have a PHP extenstion, and they run just fine.
Anyway, to further try to chase down the problem, I made a script to test to see if the file is there:
PHP Code:
<?php
if (file_exists("/home/behindth/public_html/comments/includes/commentics.php")) {
print "File exists!\n";
} else {
print "File does not exist!\n";
}
require "/home/behindth/public_html/comments/includes/commentics.php";
?>
It prints:
Quote:File Exists.
Access denied.
I am also somewhat mystified that my script does not generate the full error, but the integration code does.
My integration code is:
PHP Code:
<?php
$page_id = "1";
$reference = "test";
$path_to_comments_folder = "/home/behindth/public_html/comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>