RE: a code question..??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, November 10, 2005 3:15 pm, bruce wrote:
> the primary issue i'm trying to address is whether it's possible for a
> php
> app to somehow display on one app, code/forms that essentially resides
> on
> another server? doens't have to be a login form..
>
> in all honesty, i don't see how it can be possible..
>
> using curl, would simply download the code from app B to app A which
> isn't

curl would download the HTML, not the PHP source.

You can use:
<?php include "http://example.com/application/B/source.phpsource";;?>

to snag the source code from B and execute it on A.

That's the closest thing to what I think you may be asking... which
I'm not even sure what it is.

The 's' at the end of my URL is not a typo.  It assumes that you have
a file named source.phpsource of MIME type text/plain that dumps out
PHP code from Application B.  Application A can include and execute
this source code.

This is not a Good Idea (tm) at all if you don't implicitly trust
Application B source code to be completely free of (intentional and
unintentional) malicious/dangerous/buggy code.

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux