/    Sign up×
Community /Pin to ProfileBookmark

Can a PHP page send info to a 3rd party while a session is going with the client

I have a situation where I would like to send some info from a host web server to another web server after a client has connected to the host server. I would like to do it in such a way that is transparent to the client.

Have a look at [URL=http://members.optusnet.com.au/~abms/Comm_Diagram.jpg]this diagram[/URL] for a better description. The message sent to the other web site is most likely to occur when the client initially connects to the main server.

I pretty sure this is possible with cgi scripts (eg. counters), but that’s not how I need to do this, since both servers are shared SSL sites.

Cheers,
Nap

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@Brooksie155Sep 14.2006 — I think you could send a packet of data 'message or whatever' by connecting to www.consultant.com by using fsockopen(), or fopen().

Depending on what you are trying to achieve?
Copy linkTweet thisAlerts:
@NogDogSep 14.2006 — You could use the [url=http://php.net/curl]cURL[/url] or [url=http://php.net/http]HTTP[/url] extensions if they are installed/enabled.
×

Success!

Help @Nap spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...