Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
MicroBug is on a distinguished road
 
Posts: 4
Join Date: Aug 2011
Default PHP cURL help - 09-05-2011, 02:11 PM

Hi mates, I am very new to cURL so I wana a help from you.. I want to execute two URLs simultaneously like, I need to execute http://xyz.com/abc.php?a=hi&b=hellow but when I hit it, i will display "You're done", since that isnt my site so I cant edit "You're done" but what I want is when someone hits it from my site it executes the above url too and also gets redirected to my page http://abc.com/success.php so that others never know what happened, so can u write a simple script for me? Help me guys I'm a beginner and wanna learn..
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
lobrc's Avatar
Administrator
lobrc is on a distinguished road
 
Posts: 5,046
Join Date: Jan 2010
Location: http://www.lobrc.net
Default 09-05-2011, 05:39 PM

HTML way:
HTML Code:
<meta http-equiv="refresh" content="0;url=http://abc.com/success.php">
PHP way:
PHP Code:
header('Location: http://abc.com/success.php'); 


FREE SCRIPT INSTALLATION SERVICE | PREMIUM HOSTING* | LOBRC.NET

*All packages include Quality Support, Website Builder, Free Site Migration, 30 Day Money Back Guarantee, Official cPanel and Fantastico Autoinstaller.

Plus get 20% off with promo code 000WH20. Contact sales for more information.
Reply With Quote
(#3 (permalink))
Old
Junior Member
MicroBug is on a distinguished road
 
Posts: 4
Join Date: Aug 2011
Default 09-06-2011, 01:22 AM

I know about the header but how will the 1st url be executed then? I mean I need to use two headers : header('location: http://xyz.com/abc.php?a=hi&b=hello') ; header('location: http://abc.com/success.php') but this didnt work! It didnt execute both urls simultaneously...
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com