Re: possible to get a function from another domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, August 23, 2005 9:47 PM
Subject: Re:  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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux