Access CMSB from a remote server

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 2, 2011   (RSS)

Re: [rcrofoot] Access CMSB from a remote server

By Jason - September 2, 2011

Hi Rick,

The php require_once function normally doesn't work from an external server. Also, for security reasons, servers won't normally allow remote access to the database.

Is there a special reason why the processing has to take place on an external server?

There are other options for getting remote information. For example theirs the CMS Builder function getPage() that will return the content of a remote page:

example:
<?php
list($html, $httpStatusCode) = getPage("http://www.mysite.com/includes/mydata.php");
?>


You can then parse out the content form $html.

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Access CMSB from a remote server

By rcrofoot - September 2, 2011

Thanks Jason...

You jogged my memory into coming up with a pretty simple solution...If it works that is!

Have a great weekend...Rick