(SOLVED) UDT PHP include problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

(SOLVED) UDT PHP include problem

Post by oklahomawebhost »

Hello,

On a site I am using a User Defined Tag, that uses PHP include('') to call another CMSMS page and display it as a menu on the site.

This used to work fine, but recently we are no longer able to use PHP Remote includes, (our code was

Code: Select all

include ("http://www.sitename.com/cmsmadesimple/index.php?page=main-menu");
But now we'll have to use local file includes, but I can't seem to get it to work either. has anyone had an luck getting a link to a CMSMS page work work using the local file include?

I've tried

Code: Select all

include ("index.php?page=main-menu");
and a host of other methods including putting the entire file path into it.

Any thoughts?
Last edited by oklahomawebhost on Thu Apr 09, 2009 3:47 pm, edited 1 time in total.
alby

Re: UDT PHP include problem

Post by alby »

oklahomawebhost wrote:

Code: Select all

include ("index.php?page=main-menu");
You must include file and not url
include url works if you have allow_url_fopen and allow_url_include enabled


Alby
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Re: UDT PHP include problem

Post by oklahomawebhost »

How would include file to a page? since it's being called by index.php?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: UDT PHP include problem

Post by Ted »

CMSMS really doesn't have an easy way of scripting out it's contents -- it does a lot of reading of HTTP headers and such to determine which content should be displayed.  Remote includes is really the only way you're going to get the desired result.  Beyond that, you're going to have to result to custom scripts and cron jobs to get what you need.
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Re: UDT PHP include problem

Post by oklahomawebhost »

I was afraid of that. :(

Thanks,
I think the answer is to move this site to a different server that currently allows PHP Remote Include.
Post Reply

Return to “CMSMS Core”