Technical & Scientific > Programming
Fuck you PHP!
Mike:
Well, obviously that is not the actual code :)
This was part of the following:
$options = [
'http' => [
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
],
];
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
The URL being called should have returned a JSON response which includes a `success` key that is a boolean. However, due to the recent cutover the URL now returned a HTML string and the code continued on as normal like nothing was wrong.
Unfortunately, this is embedded in Wirepress code so I'm stuck with PHP for awhile :mad:
And now I've got to go and see if it ever worked and the best way to fix it. /sigh
Navigation
[0] Message Index
[*] Previous page
Go to full version