Created
February 21, 2019 14:47
-
-
Save eyalway2cu/9bbc052df56aceadc7972f8951cb9f70 to your computer and use it in GitHub Desktop.
what am I missing here ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $data = str_getcsv(file_get_contents("php://input")); | |
| $postdata = iconv("Windows-1255", "UTF-8//TRANSLIT", $data) | |
| $url = "https://hook.integromat.com/tbm66kikj9r4exmauz22gvdzine0kite"; | |
| $opts=array("http"=>array( | |
| "method"=>"POST", | |
| "header"=>"Content-type: text/csv", | |
| "content"=>$postdata, | |
| "ignore_errors" => true | |
| )); | |
| $context = stream_context_create($opts); | |
| $result = file_get_contents($url, false, $context); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment