Reply to Re: [PHP] possible to get a function from another domain

Your name:

Reply:


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
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация