Recovering mandrill data to txt using php -


I am trying to transfer the post data directory which sends to my URL. I am sending it to a .php file. This is the full code of the file that I am posting:

  #! / Usr / bin / php & lt ;? Php $ f = fopen ("webhook_data.txt", "a"); $ Data = $ _POST ["mandil_events"]; Filitt ($ f, $ data); Fclose ($ f); ? & Gt;  

POST is reaching my URL to make sure. This will be a method, a trigger, when I send a post, it will execute a PHP file in any way and create a textile.

On the other hand, if I try to execute the php file (./file) manually. Php) This gives me an error: Undefined index: mandrill_events

Nobody knows how can I do this?

Edit:

This is not a trigger problem, Epa works with it correctly In some way, Mandril does not send me anything, any thoughts?

The code was okay, I do not know why, but Mandril has started sending the data this morning XD.


Comments