I'm modifying a webpage that has about 3 different PHP scripts on it, so far all of them work together flawlessly. I'm trying to incorporate a blog app (cutephp), however when I perform a specific operation (adding a comment), the script fails and it outputs an error.
Under normal working conditions the inclusion of the blog's code looks like this (which is NOT in the page's php header tag):
Code:
<?PHP
$template = "HomePage";
$number = "1";
$category = "1";
include("cutenews/show_news.php");
?>
The weird thing is that if I take cutephp's include and place it in the header, the problem with the comment goes away, however it opens up numerous other complications that would probably be even harder to work around. When I leave the code as-is, the script works great, but the comments is jacked. If I remove all the other PHP includes from the page so that only CutePHP's remains, then the blog works totally as intended.
I've asked for help on the script's forum page, and while they're very helpful, they also tend to take a very long time to respond (usually). I don't imagine that anyone around here happens to know the in and outs of CutePHP's script, but I was wondering/hoping that maybe there is some general PHP practice I'm unaware of that might help.
Thanks guys!
The page it's being tested on is located here. - after you click the comment link at the bottom of the article and then fill out the comment form, the problem manifests when you hit the "Add comment" button.
|