Executing PHP files on remote web server



I'm new at this so go easy!

We have a web app which uses PHP and MySQL on our in-house Apache web
server. It was built by programmers no longer with us. Works great for our
in-house users. Now the boss wants to let clients see some of the data in
summarized reports that get updated about every 15 minutes during working
hours. For security reasons we don't want the external clients remotely
accessing our network for these reports. We have a commercial web host
servicing our external clients, but we don't want to move the entire app and
database to the web host because a lot of the data is sensitive.

By loading the non-sensitive data into the web host's MySQL tables, our
external clients can see their reports on the web (once I build web pages
for that). Trouble is, our web host put a firewall on the MySQL database so
we can't insert data into the remote tables directly from the PHP pages
running on our own web server. The web host has it set up so we can only
upload data dumps to our web database manually through a web browser after
logging into our account. Although it's not much data to upload each time,
doing this manually to update the web database tables every 15 minutes is a
show-stopper.

The good news is we can access the web MySQL database directly from our
domain's web space. Is it possible to move a few of the PHP pages -- the
ones needed to do the inserts into the MySQL database -- to the web host and
point to those remote files in the PHP pages that remain on our own web
server? (From what I can see this needs to include a global variables file
besides the SQL insert scripts. The global variables include SSI file
paths, db name, user name, etc. that don't match on the two web servers.)
The result would be the PHP pages on the web host's server executing the
data insert statements into the web database. I think I need to pass
session variable values to the web host's server from the session variables
on our web server, but I'm a C and Java programmer from way back, not a PHP
programmer (until now!) and I don't know if these remote operations can be
done.

Is this possible or am I just a wishful thinker? If it's possible, how can
I do it?

TIA.


.



Relevant Pages

  • Web Developers - Happy Hearts And HDTV! - Lockergnome
    ... Certificate on your MSIIS Web server. ... getting data from a database is only half the problem. ... Zend recently started a series about building rock solid code in PHP. ... which provides bulk database conversion. ...
    (freebsd-questions)
  • Re: Trying to build a database driven website
    ... The database is stored on a remote server which all ... I've installed MySQL, PHP and Apache on ... My biggest problem is how to connect to the database on ...
    (comp.lang.php)
  • Re: Trying to build a database driven website
    ... The database is stored on a remote server which all ... I've installed MySQL, PHP and Apache on ... My biggest problem is how to connect to the database on ...
    (comp.lang.php)
  • Re: hitting the limits
    ... relatively straight forward MySql database. ... 10K visitors a month and an 80Mb database are nothing. ... heavily loaded server. ... But the connection will hang around until the garbage ...
    (comp.lang.php)
  • Re: Database connection error (re-post)
    ... MySQL is a database server, it is not a desktop database like Access, you have to work with directly ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ...
    (microsoft.public.frontpage.client)