An error I am getting from one of my scripts is "/home/everyday/public_html/upload.cgi did not return a true value at /home/everyday/public_html/index.cgi line 66.". Which of the two files should I be looking at to find where the bug is?
Question 2: both the files as seen in the error above require() files at the top of the scripts. When the script says upload.cgi did not return a true value, is it just upload.cgi that errored out or could it be the require("header.cgi"); that's at the top of the script? And when doing line counts in upload.cgi for line 66, is it 66 lines in that file or do I have to count 1 - (first req. file line), count all those lines, then go back to my upload.cgi? I have no idea what line could be wrong because it's requiring() a file.
Last but not least, the following snippet dies
The error is "Compilation failed in require at upload.cgi line 15.". I included a test print statement fir $index_page (which is the one that's failing) and it's printing "home/everyday/public_html/index.cgi" and that file does exist and it works!. So what could be the problem?if (!defined($index_page)) { require("header.cgi"); $main_content = $ENV{"DOCUMENT_ROOT"} . "/upload.cgi"; #print "test"; print $index_page; require($index_page); exit; }
Thanks for your help everyone.
In reply to Require files by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |