PDA

View Full Version : PHP include in perl scripts


Nick
20-Jun-2003, 11:19 AM
Hi

We're developing a new site (if you're interested, the test URL is http://inkware.hazelhost.co.uk ) that is using a PHP include in the templates.

By setting all of the Actinic page names with a .htm extension (as opposed to .html) and configuring the server to parse .htm as a PHP file, we are able to include a PHP menu in all of the pages.

However, this method falls down when it comes to the checkout or cart pages as these are, of course, perl generated. When going to the cart or checkout pages we get an "object expected" error at the point where the page should be including the php menu file.

This is a bummer as we may have to rethink the site design if we can't get the perl scripts to include the php menu.

Are there any gurus out there with some clever ideas?
:)

Many thanks

Nick

cdicken
20-Jun-2003, 03:36 PM
There was a similar question asked a little while ago here: http://community.actinic.com/showthread.php?s=&threadid=1827&highlight=PHP.

That may give you a couple of pointers.

Nick
21-Jun-2003, 01:28 PM
Hi Chris

Thanks for your reply. The post you mentioned confirmed what I thought - we can't do it. :( - so we'll have to put the menu into the template for the checkout rather than using a php include.

Regards

Nick