Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Includes from multiple scripts conflicting
Old 10-13-2007, 05:59 PM Includes from multiple scripts conflicting
Average Talker

Posts: 20
Name: Chris
Trades: 0
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.
toastysquirrel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-15-2007, 04:00 PM Re: Includes from multiple scripts conflicting
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
when i try'ed it ... i got my comment posted withou any errors

but as a sugestion .... look into
include_once
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Reply     « Reply to Includes from multiple scripts conflicting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09606 seconds with 12 queries