Using Article Manager with CMSB

12 posts by 4 authors in: Forums > CMS Builder
Last Post: December 27, 2008   (RSS)

Re: [cvanb] Using Article Manager with CMSB

By Dave - December 27, 2008

Chris,

Sorry, my mistake, what I meant was:
<?php include "$published.tenMostRecentAll.filepath$"; ?>

The php include function takes a full filepath. The reason it wasn't working before is because it was only getting passed the webpath (the path in the url) and there is no directory /cgi-bin/ in the filesystem. The filepath to /cgi-bin is actually probably something like /var/www/vhosts/eco-wisdom.com/httpdocs/cgi-bin/.

You'll need to make sure this page is being published under /var/www/vhosts/eco-wisdom.com/httpdocs though, because based on the error message it looks like your host is configured to only allow you to include files from under that dir. If your cgi-bin is not below but beside httpdocs you'll need to ask them add that directory to the list of directories that open_basedir allows you to include files from.

Let me know if that include works. If not we just need to figure out how to get the full filepath in there and it should.
Dave Edis - Senior Developer
interactivetools.com