RE: [PHP] security include from remote server




Miguel -

If my solution is not viable, is there any other way of hosting my
files someplace else, but still access the local database?

Yes. Your remotely hosted code would call the database on your local
server. Something like:

<? $link = mysql_connect("foo.com", "bar", "PASSWORD"); ?>

You would also need to allow the connection from the remote host in mysql.

mysql> GRANT ALL ON foo.* TO bar@'202.54.10.20' IDENTIFIED BY 'PASSWORD';

Then you need to open the mysql port on your router to point to your
database server. I believe the default port is 3306.

Hope that helps.

Brad

-----Original Message-----
From: Miguel Vaz [mailto:dante@xxxxxxxxxxxxxxx]
Sent: Wednesday, September 13, 2006 7:48 PM
To: php-general@xxxxxxxxxxxxx
Subject: [PHP] security include from remote server


Hi,

Heres a simple problem:

I am doing a php+mysql website at my office, hosted locally but open

to the web, but i wouldnt like to host my files on our office server.
I could host them somewhere else but our mysql database cant be
accessed from the outside, only from our server.
I thought about having a simple php local file that would include my

files that are hosted someplace else, and therefor be able to access
my local database, would that be possible? My first thought would
probably be no, but i cant really do any tests right now, thats why i
am asking you guys.
If my solution is not viable, is there any other way of hosting my
files someplace else, but still access the local database?

(also thought of using zend guard to protect my code, but that would

imply an install on our office server, which is out of the question)

Thanks.


Pag

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #152
    ... MICROSOFT VULNERABILITY SUMMARY ... Real Networks Helix Universal Server Remote Buffer Overflow ... ... NEW PRODUCTS FOR MICROSOFT PLATFORMS ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #140
    ... Cafelog b2 Remote File Include Vulnerability ... Webfroot Shoutbox Remote Command Execution Vulnerability ... Pablo Software Solutions Baby POP3 Server Multiple Connection... ... Microsoft Windows XP Nested Directory Denial of Service... ...
    (Focus-Microsoft)
  • RE: Remote Office Configuration Suggestions?
    ... The additional DC at the remote site, could not be the SBS server, as you ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003 sudden services problem over router based vpn
    ... I understand that your remote cannot receive POP3 emails through VPN ... SBS Server through routers. ...
    (microsoft.public.windows.server.sbs)
  • RE: Download connection Manager through RWW
    ... the issue may occur due to the Remote VD is ... Then please rerun the CEICW wizard and Configure Remote access wizard ... Start Internet Explorer. ... Since the Symantec anti-virus application installed on the server, ...
    (microsoft.public.windows.server.sbs)