Re: Accessing function file on another domanin
From: Brommer (brommer_at_gmail.com)
Date: 10/29/04
- Next message: Craig Keightley: "convert time"
- Previous message: Mike Harvey: "Re: Accessing function file on another domanin"
- In reply to: Mike Harvey: "Re: Accessing function file on another domanin"
- Next in thread: Mike Harvey: "Re: Accessing function file on another domanin"
- Reply: Mike Harvey: "Re: Accessing function file on another domanin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Oct 2004 14:56:44 +0200
Mike Harvey wrote:
> Thanx guys!
>
> $x=include_once("http://site_b.com/function_file.php?var1=a&var2=b");
> echo $x;
>
> All I get is a "1", not the output of file b.
You get "1" because that is the output of the include_once meaning it
has succesfully included the file.
If you don't get any other output it means that the included script
doesn't produce any....does the script produce output when called with
the same parameters in your browser?
If you want to get the output in a varable use another function like
file_get_contents() (http://nl2.php.net/file_get_contents)
- Next message: Craig Keightley: "convert time"
- Previous message: Mike Harvey: "Re: Accessing function file on another domanin"
- In reply to: Mike Harvey: "Re: Accessing function file on another domanin"
- Next in thread: Mike Harvey: "Re: Accessing function file on another domanin"
- Reply: Mike Harvey: "Re: Accessing function file on another domanin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|