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

Home: Discontinued Products: Article Manager 1:
Problem with PHP includes

 

 


terryally
User

Sep 9, 2008, 1:21 PM

Post #1 of 4 (850 views)
Shortcut
Problem with PHP includes Can't Post

Hi there,

I used to be able to do a PHP includes using the full HTML path while was ideal if I wanted to run a search query and include the result i.e. search.cgi?start=1&perpage=1&cat=1,2,3,4,5&template=search/name.html

The server host no longer allow file includes citing security reasons. They only allow includes using the server file system and of course a query cannot be included.

Is there another way - other than cURL - to include a query?

Terry


Donna
Staff / Moderator


Sep 9, 2008, 2:05 PM

Post #2 of 4 (849 views)
Shortcut
Re: [terryally] Problem with PHP includes [In reply to] Can't Post

Hi Terry!

What I'd recommend here is to use a script we have available called "Publishcron" to turn your dynamic query into a static page that is updated whenever you publish.

The same premise is used to create the RSS feed in Article Manager 1, take a look at this tutorial here:

http://www.interactivetools.com/products/articlemanager1/tutorials/rss.html

Only instead of using the RSS template to set it up, you'd use the search/name.html template. Steps 2 & 3 will be the important ones here. :)

Give that a try and let me know how it works for you!

Donna


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.


Donna
Staff / Moderator


Sep 9, 2008, 2:06 PM

Post #3 of 4 (848 views)
Shortcut
Re: [terryally] Problem with PHP includes [In reply to] Can't Post

One other thing to note is that Article Manager 2 has this functionality built in -- all you'd have to do is create a new publish rule, so if you're looking for an excuse to upgrade... ;)

Donna


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.


terryally
User

Sep 10, 2008, 12:12 AM

Post #4 of 4 (842 views)
Shortcut
Re: [Donna] Problem with PHP includes [In reply to] Can't Post

Works like a charm Donna .... you're brilliant Wink

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
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