Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Older Forums & Discontinued Products: Web Design & Coding (HTML, CSS, JavaScript, etc):
Problems with AM templates and PHP

 

 


Klarth
New User

Oct 27, 2006, 10:29 AM

Post #1 of 3 (1697 views)
Shortcut
Problems with AM templates and PHP Can't Post

Hello.

I post here because i just havent been able to put PHP scripts into an AM template. (Article Manager 1 and 2, Article Manager 1 solution is desirable, but AM2 is fine too.)

Basically i am using several systems, one to manage listings, which is on PHP, another one is a guestbook, which is PHP also and Article Manager which manages all my news needs. I am using a template which uses <?php include>, but also i need to every page to be connected to a mySQL database of the listings, including my Article manager generated pages.

I´ve been doing research, and first of all i know that AM can do SSI emulation, or run PHP scripts within itself, yet when i try to generate a page with article manager, i get a "500" server error. I don´t even know what goes wrong, it just doesnt publish the article.

I tried to do the virtual_include as explained in the documentation. I´ve also changed <? require> into <? include>. No luck with either of those.

Any feedback will be deeply appreciated.


elderban
User

Nov 12, 2006, 5:22 AM

Post #2 of 3 (1502 views)
Shortcut
Re: [Klarth] Problems with AM templates and PHP [In reply to] Can't Post

Are your pages saved as PHP or SHTML?

If they are not saved as PHP then any PHP code will not be parsed.

Bryan Gilchrist


ross
Staff / Moderator


Nov 12, 2006, 4:51 PM

Post #3 of 3 (1490 views)
Shortcut
Re: [Klarth] Problems with AM templates and PHP [In reply to] Can't Post

Hi Klarth.

Thanks for posting and welcome to the board!

As Bryan had mentioned, thanks by the way Bryan Smile, you’ll definitely want to have your Article Manager pages publishing with php extensions if you wanted to have PHP scripts to run.

Now, depending on which version of Article Manager you are using, setting the publish extension is a little different so could you let me know which version you are using?

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4