Re: calling included remote functions
From: juglesh (juglesh_at_nospamRadioKDUG.com)
Date: 02/26/05
- Next message: Chung Leong: "Re: Automated Form Validation?"
- Previous message: propizzy: "Re: How to get a Dynamic Javacript Form variables seperated in PHP"
- In reply to: Geoff Berrow: "Re: calling included remote functions"
- Next in thread: J.O. Aho: "Re: calling included remote functions"
- Reply: J.O. Aho: "Re: calling included remote functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Chung Leong: "Re: Automated Form Validation?"
- Previous message: propizzy: "Re: How to get a Dynamic Javacript Form variables seperated in PHP"
- In reply to: Geoff Berrow: "Re: calling included remote functions"
- Next in thread: J.O. Aho: "Re: calling included remote functions"
- Reply: J.O. Aho: "Re: calling included remote functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|