Industrialshadow Posted September 10, 2016 Report Posted September 10, 2016 I have searched the full Forum here for codes or ather Things to bring the Notam to work. Nothing is working. SO if there an actually Way to Display the latest 4 Notam´s in the Schedule Brief Site? Many Thanks Quote
Members Vangelis Posted September 11, 2016 Members Report Posted September 11, 2016 (edited) Just made this for you Put it in core/common folder you can call it wherever you want with <?php NOTAMSData::GetNotam($icao,numberof notams);?> $icao = the airport icao you want the notams to get number of notams = the amount of notams you want to get -1 if you want 4 notams then you write 3 etc NOTAMSData.class.php Edited September 11, 2016 by Vangelis Quote
Industrialshadow Posted September 12, 2016 Author Report Posted September 12, 2016 Hi Vangelis i have put the code inside my Schedule briefing and the Notam Data Class in the common Area but e become this Failure Can you help me please Warning: file_get_contents(http://api.vateud.net/notams/.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /www/htdocs/w01501e7/lausitzair/core/common/NOTAMSData.class.php on line 18 Warning: Invalid argument supplied for foreach() in /www/htdocs/w01501e7/lausitzair/core/common/NOTAMSData.class.php on line 22 Quote
Members Vangelis Posted September 12, 2016 Members Report Posted September 12, 2016 What code did you put in the schedule briefing ? <?php NOTAMSData::GetNotam($icao,numberof notams);?> This is the only code you need to add in the template Quote
Industrialshadow Posted September 12, 2016 Author Report Posted September 12, 2016 (edited) yep <?php NOTAMSData::GetNotam($icao,4);?> this code i have put in to my schedule briefing. The NotamClassData.php i have put into my common Structure on the Webserver. But the i become this failure message see above.. Edited September 12, 2016 by Industrialshadow Quote
Members Vangelis Posted September 14, 2016 Members Report Posted September 14, 2016 (edited) try <?php NOTAMSData::GetNotam($schedule->depicao,4);?> and <?php NOTAMSData::GetNotam($schedule->arricao,4);?> for arrival Edited September 14, 2016 by Vangelis Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.