Only just to say:
There is no way how to grab PHP source code from remote computer!!!
1/ As I said: communicating with another computer is always using some
protocol (HTTP,HTTPS,FTP,GOPHER,SMTP) And using http protocol always
pass the code through php parser before it's sended to you. Always,
The only real way to do this is to set up a web service on domain 2 which
responds to page requests by pulling the source directly as a file, without
interpreting it as PHP code.
The function to use here is
readfile(/path/to/my/php/scripts/on/webserver.php);
You might also want to set a header
: [PHP-DB] Downloading PHP source from a
PHP filename, possible?
Jerry --
...and then JeRRy said...
%
% Hi,
Hi!
%
...
% If a file is called blah.php and is only tailored to
% PHP code is it possible to make it downloadable
either
% as a file-download or appear as plain text in a
% browser
Jerry --
...and then JeRRy said...
%
% Hi,
Hi!
%
% Thanks for the code(s), finally got it to display in a
% page. But I crashed the server in the attempt. Very
% bad thing I did... Which threw out over 3000 processes
% for just visiting the page the one time... eck!
Oops :-)
%
% It was
Jerry --
...and then JeRRy said...
%
% Hi,
Hi!
%
...
% If a file is called blah.php and is only tailored to
% PHP code is it possible to make it downloadable either
% as a file-download or appear as plain text in a
% browser window?
You could probably manage anything, though it might be a