Forum Moderators: buckworks

Message Too Old, No Replies

Mal's Remote Callback

         

doodlebee

4:25 pm on Jan 17, 2009 (gmt 0)

10+ Year Member



Just curious if anyone has gotten Mal's remote callback function to work properly?

I'm currently writing a plugin for WordPress (it seems to be needed, since i haven't found anything like it), and the only thing that I'm hung up on is that remote callback feature. I've downloaded and used the scripts they provide (but offer no support for), and scoured the forums and Google for more information on getting this to work, but information is beyond minimal.

I'm just wondering what steps *you* all have taken to get this feature to work. So far, I can populate the database just fine, and the connection is fine, but nothing is being inserted into may database. Even the debug emails come back saying everything's fine - save one thing that isn't clear:

"Server:Blocked"

That's the only line in the debug email that htorws up a red flag - but there's no more information on it, so I don't know what that means.

I've got an email out to my hosting company right now - but i was wondering if anyone out there has gotten this to successfully work, how did *you* do it, and if you've seen this error before, how did you fix it?

doodlebee

8:10 pm on Feb 11, 2009 (gmt 0)

10+ Year Member



For the record, I thought I would follow up on my own thread, since I've now got it working.

the "Server: blocked" thing means nothing. LOL

However, to get the data to write to my database, I needed the $_POST[] function in my script. The callback actually returns everything in a variable called "$data" - and I was just trying to pull form that variable. Using "$_POST['data'];" did, indeed, give me access to what I needed.

Thanks anyway!

lorax

1:30 pm on Feb 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



THanks for the followup!

doodlebee

1:37 pm on Feb 12, 2009 (gmt 0)

10+ Year Member



No problem.

By the way, my hosting company did help out a bit by supplying a small piece of code that helped me track down the issue. *You* smarties probably know all about this one, but *I* didn't - so maybe it'll help someone else to have it here.

In my "call.php" file (the one that grabs the data sent back from Mal's) they placed this bit of code:

//debug
$err = mysql_error();
if($err) {
error_log($err);
}

if there was a MySQL or PHP error with what was going on, it would create and "error_log" file in my directory where I could download and look at the results. It really helped me find and knock out my issues.