Main
Index
Search
Posts
Who's
Online
Log
In

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

 

 


terryally
User

Sep 9, 2008, 1:21 PM

Post #1 of 4 (6413 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 (6412 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

--
support@interactivetools.com


Donna
Staff / Moderator


Sep 9, 2008, 2:06 PM

Post #3 of 4 (6411 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

--
support@interactivetools.com


terryally
User

Sep 10, 2008, 12:12 AM

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

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