Reply to RE: [PHP] a code question..??

Your name:

Reply:


Posted by "bruce" on 11/11/05 02:02

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@l-i-e.com]
Sent: Thursday, November 10, 2005 3:02 PM
To: bedouglas@earthlink.net
Cc: 'Ben'; php-general@lists.php.net
Subject: RE: [PHP] 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация