RE: a code question..??

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

 



richard...

in your example, wouldn't app A, essentially download the code from app B,
and run the source on app A? or would the code be run on app B, with the
resulting html/content/page being transferred to app A?

would this be better if it were perhaps done as a soap client/server
process... of course, the fact that the user's php would have to have the
soap extensions installed would be an issue...

-bruce


-----Original Message-----
From: Richard Lynch [mailto:ceo@xxxxxxxxx]
Sent: Thursday, November 10, 2005 3:02 PM
To: bedouglas@xxxxxxxxxxxxx
Cc: 'Ben'; php-general@xxxxxxxxxxxxx
Subject: RE:  a code question..??


On Thu, November 10, 2005 4:30 pm, bruce wrote:
> as i understand curl functions (and correct me if i'm wrong). the
> functions
> simply allow the user/app to download/copy the file from the remote
> server,
> where the existing app could do whatever with the content...
>
> this isn't what i want.. i'm trying to figure out if there's a way to
> run a
> chunk of code on a remote server... i'd rather not put the source on
> the
> intial client-app A machine...

The trick, then, is for app B to make its SOURCE CODE available for
curl on server A to snatch.

http://b.example.com/source_code.php?filename=login.php
<?php
  //really BAD INSECURE code for illustration:
  $filename = $_GET['filename'];
  header("Content-type: text/plain");
  readfile($filename);
?>



On server A:
<?php
  include "http://b.example.com/source_code.php?filename=login.php";;
?>

Or you could use curl to get the code and eval it, or you could use
file_get_contents and eval it, or you could get the code, save it to a
temp file, and then include the temp file, or you could...

It's not that it can't be done.  It's that there are so many ways to
do it, we don't know where to start.

--
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

-- 
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