Re: calling included remote functions

From: juglesh (juglesh_at_nospamRadioKDUG.com)
Date: 02/26/05


Date: Fri, 25 Feb 2005 20:44:15 -0800


"Geoff Berrow" <bl@ckdog.co.uk> wrote in message
news:75av11dprg70goldrlu7jcdijl4i1ck6fq@4ax.com...
>I noticed that Message-ID: <3OGdnaLDhNO-BYLfRVn-iQ@comcast.com> from
> juglesh contained the following:
>
>>the script that will run on the central domain needs to do several
>>readirs,
>>is_files, etc. Testing with is_file is not working.
>
> From the manual on include:
>
> If "URL fopen wrappers" are enabled in PHP (which they are in the
> default configuration), you can specify the file to be included using a
> URL (via HTTP or other supported wrapper - see Appendix L for a list of
> protocols) instead of a local pathname. If the target server interprets
> the target file as PHP code, variables may be passed to the included
> file using a URL request string as used with HTTP GET. This is not
> strictly speaking the same thing as including the file and having it
> inherit the parent file's variable scope; the script is actually being
> run on the remote server and the result is then being included into the
> local script.

I'm running this on the remote(central) server:
  if (is_file("http://www.satelitedomain.com/aFileThatExists.php")){
                     echo "file read";}

so, why is that IF not true? Well, security, I suppose? The script not
allowed to
know what file exists on another server? Oh, doesn't work to use the
absolute url from the local computer, either. No is_file from http, then.
Probly no readdir either?

I might have to go back to the idea of using .inc files, but I think my
server is weird about them. If I include a .inc nothing happens, if I
include a .xyz it works fine (but exhibits the above behavior).

-- 
juglesh


Relevant Pages

  • Re: Loading XML Data into SQL Server remotely - Best approach?
    ... If you want to use Bulkload, you wouldn't be able to do it within an SP. ... You could set up a VB script that did it though. ... Updategrams - Can send over http, ... OpenXml - In server shredding, can do it in an SP, but loads the whold doc ...
    (microsoft.public.sqlserver.xml)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Regarding a selection for mobile code/scripting language
    ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
    (Vuln-Dev)