Accessing function file on another domanin
From: Mike Harvey (spam_at_spam.com)
Date: 10/27/04
- Next message: Richard Salin: "Table/Array -> Excel (With PHP)"
- Previous message: Egon Hehn: "Re: udp server - while loop doesn't work"
- Next in thread: Janwillem Borleffs: "Re: Accessing function file on another domanin"
- Reply: Janwillem Borleffs: "Re: Accessing function file on another domanin"
- Reply: Oli Filth: "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: Wed, 27 Oct 2004 17:05:24 GMT
I want to be able to access the functions located in a file on site A
from site B without the person who owns site B being able to see the
code in the function.
Examples:
This works:
<?PHP
include_once("http://site_a.com/function_file.inc");
echo my_function();
?>
However, simply going to http://site_a.com/function_file.inc in a
browser will show you the code that makes the function work.
This doesn't work:
<?PHP
include_once("http://site_a.com/function_file.inc.php");
echo my_function();
?>
Calling http://site_a.com/function_file.inc.php directly with a
browser will not give you anythin - which is what I want. However,
anything that the above called file actually "does" works but any
functions declared in it are not available to the code that called it.
Any ideas?
- Next message: Richard Salin: "Table/Array -> Excel (With PHP)"
- Previous message: Egon Hehn: "Re: udp server - while loop doesn't work"
- Next in thread: Janwillem Borleffs: "Re: Accessing function file on another domanin"
- Reply: Janwillem Borleffs: "Re: Accessing function file on another domanin"
- Reply: Oli Filth: "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
|