Re: Including a .php file from another server?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Including a .php file from another server?

From: juglesh <jugleshjunk@hotmail.com>
Date: Sun Sep 25 2005 - 18:01:50 CEST

If you want to run the included code on your server (like access a db
or files on the including server with this included script) you could
try a non standard ext. so, try including
anotherserver.com/includedscript.blah. The disadvantage here is that
someone could access www.anotherserver.com/includedscript.blah and see
your code, so you cant have anything secret on it. You might work
around this by using .htaccess on anotherserver.com to allow this
script only from your including server...but, I really dont know the
ins and outs of doing that.

-- 
juglesh
Received on Mon Oct 24 02:10:11 2005