howidid Posted August 17, 2009 Share Posted August 17, 2009 I have created a paypal ipn script. Now in this script, at the end when I record that transaction is successful, I need to invoke/ping an external url to notify the affiliate script so it records the affiliate sale. This remote URL has query string parameters too: It's a URL like: somedomain.com/idevaffiliate/sale.php?profile=1111&idev_saleamt=1&idev_ordernum=1&idev_option_1=name&idev_option_2=email@gmail.com&idev_option_3=2 How can I invoke this exact URL including params? Any sample code pls? Any help pls? Quote Link to comment https://forums.phpfreaks.com/topic/170596-notify-remote-url-help-required/ Share on other sites More sharing options...
oni-kun Posted August 17, 2009 Share Posted August 17, 2009 somedomain.com/idevaffiliate/sale.php?profile=1111&idev_saleamt=1&idev_ordernum=1&idev_option_1=name&idev_option_2=email@gmail.com& $profile = $_GET['profile']; $idev_saleamt = $_GET['idev_saleamt']; $idev_ordernum = $_GET['idev_ordernum']; $idev_option_2 = $_GET['idev_option_2']; if isset(.....)//check for all of them { mail('person@site.com', 'Affiliate sale', "$profile bought $ordernum"); //Won't work.. but use mail() function } Simple and without any security really.. but it'll work if you go to the url.. Quote Link to comment https://forums.phpfreaks.com/topic/170596-notify-remote-url-help-required/#findComment-899817 Share on other sites More sharing options...
ignace Posted August 17, 2009 Share Posted August 17, 2009 oni-kun: $emo = stripslashes($wrist); should be: $emo = addslashes($wrist); Plus, you shouldn't discriminate people. Quote Link to comment https://forums.phpfreaks.com/topic/170596-notify-remote-url-help-required/#findComment-899916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.