PHP in conjuction with Zope?
So here's the scoop. I'm very familiar with PHP, and I've got a site nearly ready to roll in PHP. I've even got a stupid system for letting the content guy update the pages remotely in PHP. Problem is, I've just discovered Zope. It does so much more then what I had originally wanted (a secure file repository) that I'm looking into using it for managing the whole site. Just the ability to manage the files via a web browser kicks ass. However, it seems that the PHP tags in the documents I imported with load_site.py blow up because Zope doesn't understand PHP and doesn't seem to pass things back to Apache that it can process. Any ideas? Should I quickly redevelop things in Zopeish, or is there a way to get Apache to apply the mod_php parser to the output of Zope via pcgi? -- Adam Haberlach | Who buys an eight-processor machine and then adam@newsnipple.com | watches 30 movies on it all at the same time? http://newsnipple.com | Beats me. They told us they could sell it, so | we made it. -- George Hoffman, Be Engineer
On Tue, Jan 08, 2002 at 01:04:12PM -0800, Adam Haberlach wrote:
So here's the scoop. I'm very familiar with PHP, and I've got a site nearly ready to roll in PHP. I've even got a stupid system for letting the content guy update the pages remotely in PHP.
Problem is, I've just discovered Zope. It does so much more then what I had originally wanted (a secure file repository) that I'm looking into using it for managing the whole site. Just the ability to manage the files via a web browser kicks ass.
However, it seems that the PHP tags in the documents I imported with load_site.py blow up because Zope doesn't understand PHP and doesn't seem to pass things back to Apache that it can process.
Any ideas? Should I quickly redevelop things in Zopeish, or is there a way to get Apache to apply the mod_php parser to the output of Zope via pcgi?
There is a HowTo outlining how to do this: http://www.zope.org/Members/Mamey/PHP -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
http://www.zope.org/SiteIndex/search?text_content=php&x=14&y=10 The first three hits may prove useful. Jeff On Tue, 8 Jan 2002, Adam Haberlach wrote:
So here's the scoop. I'm very familiar with PHP, and I've got a site nearly ready to roll in PHP. I've even got a stupid system for letting the content guy update the pages remotely in PHP.
Problem is, I've just discovered Zope. It does so much more then what I had originally wanted (a secure file repository) that I'm looking into using it for managing the whole site. Just the ability to manage the files via a web browser kicks ass.
However, it seems that the PHP tags in the documents I imported with load_site.py blow up because Zope doesn't understand PHP and doesn't seem to pass things back to Apache that it can process.
Any ideas? Should I quickly redevelop things in Zopeish, or is there a way to get Apache to apply the mod_php parser to the output of Zope via pcgi?
-> So here's the scoop. I'm very familiar with PHP, and I've got a -> site nearly ready to roll in PHP. I've even got a stupid system for -> letting the content guy update the pages remotely in PHP. (a) Finish your site in PHP and deploy on Apache + PHP. Use Zope on your next big project, or maybe even the next major revision of said website. The project management overhead associated with deploying an unfamiliar platform will kill your project. (b) Technically, you can use PHP with Zope in one of two ways: 1. Use Apache mod_rewrite to redirect PHP content to Apache, and Zope content to Zope (this is basically the same as not using Zope in your situation) 2. Use the PHPDocument Zope "Product" (uh, 'plug in') to process the PHP pages. This is much slower than Apache, because PHP is re-executed from the command line for every request. For a low traffic site (or a really fast server), this may be an option. See the mailing list archives for more info and details. (c) This is turning out to be a FAQ, can we please put it in there so we can just point people to the right URL? --Derek
participants (4)
-
Adam Haberlach -
Derek Simkowiak -
jeffr@odeon.net -
Martijn Pieters