0

下面是我的请求 json

{"description":"Offer Pass","formatVersion":1,"organizationName":"Skywire","passTypeIdentifier":"aaaaaa","serialNumber":"123456","teamIdentifier":"vvvvvvv","generic":{"primaryFields":[{"key":"name","label":"MEMBER NAME","value":"aaaaKanodia"}],"auxiliaryFields":[{"key":"key_2","label":"Membership Number","value":"P0120417"},{"key":"key_1","label":"Expire Date","value":"04\/26\/2018"}],"backFields":[{"key":"contact","label":"CONTACT","value":"For any membership queries or feedback mail us at infor@skywire.co.in\n"},{"key":"privilages","label":"PRIVILAGES","value":"Delhi : chroma, salesindia 
Mumbai : chroma, raj electronics"}]},"barcode":{"format":"PKBarcodeFormatQR","message":"P0120417","messageEncoding":"iso-8859-1"},"backgroundColor":"rgb(255,255,255)","labelColor":"rgb(0, 187, 211)","stripColor":"rgb(30, 30, 30)","foregroundColor":"rgb(0, 0, 0)","relevantDate":"2017-04-05T09:00-08:00","logoText":"","locations":[{"latitude":22.996,"longitude":72.4997}],"webServiceURL":"https:\/\/www.test.com\/qa\/skywire\/passAPI-ios\/examples\/index.php","authenticationToken":"1ef899002ccf3b9ed2f3106a38dd9cbb"}

这是我的 index.php

$myfile = fopen("newfile.txt", "w") or die("无法打开文件!"); fwrite($myfile, json_encode($_SERVER));

但是在 ftp 中没有生成 newfile.txt 文件。任何人都可以帮忙。

4

0 回答 0