Using EE as a PHP Include
Posted: 09 July 2005 11:21 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  97
Joined  01-02-2005

I am trying to include the main index of my EE install into a php file, so that I can integrate it with Gallery 2. I tried to simply include the main EE index with a stripped down template (no <html>,<body>, etc), but it gave me the following error:

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/2.0/index.php:15) in /home/mysite/public_html/2.0/system/core/core.functions.php on line 649

Apparently, it’s hardwired to send a header that my page has already sent. Is there any easy way to turn this off? I have searched the docs/knowledge blog/wiki, but have not found anything. The problem may be that I’m not sure what to search for, because I don’t.

If this is not possible, my other thought was to use a simple RSS parser and just pull it to the front page that way. Would this be a better solution? If so, I’d love recommendations on a simple, yet customizable PHP RSS program.

Any help would be greatly appreciated. Thanks!

Profile
 
 
Posted: 09 July 2005 11:27 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12779
Joined  04-29-2002

Why can’t you go the other way and include the gallery stuff in EE?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 09 July 2005 11:29 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  97
Joined  01-02-2005

Thank you Lisa, you’re a genius! I don’t know where we clueless EE users would be without you!

In all seriousness, I appreciate all of the help that you have given me. If it weren’t for your constant patience and support, my website would never come to be.

Thank you again.

Profile
 
 
Posted: 09 July 2005 11:31 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  97
Joined  01-02-2005

Gallery’s templates are a bit more finnicky than EE’s. I’m also less confident that I know what I’m doing with them.

Profile
 
 
Posted: 09 July 2005 11:34 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  97
Joined  01-02-2005

By the way, if anyone else has this problem, here is the advice that Lisa gave me (I hope she doesn’t mind me posting it):

Go to admin -> Output and Debugging Preferences, Generate HTTP Page Headers? Set it to No.
Magpie is the best RSS parser out there: http://magpierss.sourceforge.net/

Turning off page headers worked, so there is no need for me to use Magpie, but I will keep the link around for future reference.

Thanks again!

Profile
 
 
Posted: 09 July 2005 11:37 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12779
Joined  04-29-2002
Johnathan (AirbrushGuy) - 09 July 2005 11:29 PM

Thank you Lisa, you’re a genius! I don’t know where we clueless EE users would be without you!

In all seriousness, I appreciate all of the help that you have given me. If it weren’t for your constant patience and support, my website would never come to be.

Thank you again.

Huh? I’m not Lisa.

Seriously, with the ability to use the query module to manipulate table data - even data that is in the same MySQL database, it makes sense to at least try to put the gallery in it.

Or not. It depends on your confort level. You could use iframes, for example.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 09 July 2005 11:39 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12779
Joined  04-29-2002

Didn’t see a post from Lisa in this group of messages.

But she’s right, the magpie plugin would work. Looks like you found a better solution.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 09 July 2005 11:49 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  97
Joined  01-02-2005

Sorry about all the confusion, Sue. Lisa IM’d me within a minute of me posting and sorted things out. That’s why I was groveling without a post from her being there. I do see that your solution will work, but now that the other way is working, I hate to change it.

I do appreciate your advice though. It’s folks like ya’ll that make this place ROCK!

Thanks!

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66467 Total Logged-in Users: 33
Total Topics: 84858 Total Anonymous Users: 9
Total Replies: 455322 Total Guests: 173
Total Posts: 540180    
Members ( View Memberlist )