Re: possible to get a function from another domain
| From: | Gustav Wiberg | Date: | Tue, 23 Aug 2005 19:59:30 +0000 |
| Subject: | Re: possible to get a function from another domain | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221202@lists.php.net to get a copy of this message | ||
Hi!
Can I use require with http?
My domain: www.varupiraten.se
Other domain: www.webshop2.se
Does this kind of code work?
Code for my domain:
<?php
require(http://www.webshop2.se/externfunctions.php);
$x = getValueFromProduct('Inno AX5000'); //This function retrieves price from webshop2.se
?
/G
@varupiraten.se
----- Original Message ----- From: "Jasper Bryant-Greene" <jasper@bryant-greene.name>
To: <php-general@lists.php.net>
Sent: Tuesday, August 23, 2005 9:47 PM
Subject: Re: [PHP] possible to get a function from another domain
Gustav Wiberg wrote:Is it possible in PHP to retrieve value from one domain to another than my own? Something like this: Other domain: function getValueForMp3Player() My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value from other domainWhat exactly do you mean by domain in this example? You can include() or require() the file with the function declaration in it... Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 2005-08-22