Reply
requests to another server
Old 10-22-2009, 07:28 AM requests to another server
numbenator's Avatar
Ultra Talker

Posts: 432
Location: London
Trades: 0
HI

Is it possible to send a request to another server within a php page but not leave the page that makes the request.

I want send a query string to another server that runs a programme to update a db. But i dont want to leave the page that sends the request.

cheers

Steve
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
When You Register, These Ads Go Away!
Old 10-22-2009, 07:33 AM Re: requests to another server
chrishirst's Avatar
Super Moderator

Posts: 22,237
Location: Blackpool. UK
Trades: 0
Yep

cURL
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-22-2009, 07:51 AM Re: requests to another server
numbenator's Avatar
Ultra Talker

Posts: 432
Location: London
Trades: 0
actually sorry the question changes somewhat

The request returns a xml file which has infor init i want to retrieve.
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 10-22-2009, 08:01 AM Re: requests to another server
chrishirst's Avatar
Super Moderator

Posts: 22,237
Location: Blackpool. UK
Trades: 0
That's what php RSS reader do, or file_get_contents()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-22-2009, 08:25 AM Re: requests to another server
numbenator's Avatar
Ultra Talker

Posts: 432
Location: London
Trades: 0
Nice one:
file_get_contents() worked a treat

Thanks for your help
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to requests to another server
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.39196 seconds with 13 queries