Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: PoLlama - elokuu 16, 2007, 11:52:42 IP

Otsikko: Sending information to other websites?
Kirjoitti: PoLlama - elokuu 16, 2007, 11:52:42 IP
Like the "Allow SMF to collect..." option on the install. How would I, with PHP send information to another website. Sort of like calling a function, but it actually runs on and returns to a different website.
Otsikko: Re: Sending information to other websites?
Kirjoitti: elfishtroll - elokuu 22, 2007, 03:22:00 AP
What do you mean? give a specific example with a site.

In general terms, you can pull data from a site and store it in a variable.

If your setup allows it, you can do something as simple as $site = file_get_contents('http://www.somesite.com');

To 'type into ' the other site, you can use CURL functions (google CURL,PHP)