So, we have moved from a localhost development to a live server for further developments. Prior to moving to a live server, simbrief API works flawlessly, generates OFP, and it outputs the page with the simbrief data.
However, now moving to a live server, we fill out the details for simbrief, departure, arrival, aircraft type, and any other details. We clicked on the generate button, and the pop-up window for Simbrief showed. It successfully generated the flight plan, and the pop-up closed. However, the page didn’t get reloaded as it should have reloaded with the Simbrief OFP ID encoded in the URL, but it never did.
Taking a look at the debugger after the Simbrief pop up closes, (URL has been redacted), this is what I got in my debugger for the URL
Hi Kyle, check your PHP configuration on your live server and see if allow_url_fopen is enabled. The API sample files need that setting in order to work.
If you cannot (or would rather not) enable that setting, you can use the following alternative PHP code which uses cURL instead.
Simply add the following function somewhere in simbrief.apiv1.php: