Posted by "Gustav Wiberg" on 08/23/05 22:59
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 domain
>
> What 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
>
>
Navigation:
[Reply to this message]
|