Hello, I'm hoping someone can give me some options to my issue. I have a mysql DB that is setup at the office on a server. The main domain webserver is being hosted off site but does not have mysql support. I would like to pull information off the DB from the office and display it on a web page on the webserver. I am able to connect to the mysql DB from the main page of our website and retrieve data. But when I try to set the template file in my PHP code back to the website, it tells my that it's unable to find the page. Here's a sample of what I'm trying to do.
Main HTML Page resides on a off site hosting company.
Main mysql DB resides on the server at the office. This is accessible through the web with proper security stuff.
From the main page of our website, I POST some info to a PHP program that resides on the DB server at the office. I'm able to select... etc to the DB at the office ... no problems. In this PHP program that resides in the office, I'm using a template to post the information back on to another webpage that resides on the off site web hosting company. I'm having difficulties is doing so. The code I'm using in the PHP file is:
?php
include('phplib/php/template.inc');
$template = new Template('.', 'keep');
$template->set_file('main', "http:\www.mywebsite.com\PQRequest-selectmat.html");
$template->set_block('main', 'select_material', 'select_material_list');
.
.
.
?>
When I run this PHP program, it tells me that it's unable to find the .../PQRequest-selectmat.html file.
Is there a solution here? .. other than paying for mysql support from the web hosting company. I'm hoping I am clear enough in the description of my problem.
Thank you for your help in advance.