Hack Forums
[PHP] Setting up a postback? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183)
+---- Thread: [PHP] Setting up a postback? (/showthread.php?tid=5756780)



Setting up a postback? - JAS - Nov 22, 2017

Heyoo,
Im trying to use adscendmedias post-back but i cannot seem to do this (Trying for an offer-wall)

If anyone has any knowledge on the full setup process please let me know.

Any help is greatly appreciated.


RE: Setting up a postback? - Charger - Nov 22, 2017

It's easy.

Put yoursite.com/postback.php in the URL box.
Next, create yoursite.com/postback.php according to the parameters that they post (documentation).



https://www.warriorforum.com/ad-networks-cpm-cpl-display/1130681-need-help-postback-url-paramaters-using-adscend-media.html


RE: Setting up a postback? - Pikzul - Nov 22, 2017

PM me if you can't figure it out, I'll help!


RE: Setting up a postback? - JAS - Dec 7, 2017

Yeah, really need some help on the code to put in the postback.php file


I want to detect when they complete a offer and update a value in the database when done.


RE: Setting up a postback? - Charger - Dec 7, 2017

(Dec 7, 2017 01:23 PM)free707 Wrote:  Yeah, really need some help on the code to put in the postback.php file


I want to detect when they complete a offer and update a value in the database when done.

Do

PHP Code

<?php 
$p 
= $_POST;
$g = $_GET;

file_put_contents("data_".date("y_m_d_h_i_s").".txt",json_encode(array("PostData" => $p, "GetData" => $g))); 

set your postback to yoursite.com/thatscript.php and then complete an offer. You'll get everything that is sent from them to your url. Do some analyzing and determine what post and get args you need.