Jump to content

Recommended Posts

  • Members
Posted (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 by Vangelis
Posted

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

Posted (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 by Industrialshadow
  • Members
Posted (edited)

try

<?php NOTAMSData::GetNotam($schedule->depicao,4);?>

and

<?php NOTAMSData::GetNotam($schedule->arricao,4);?>

for arrival

Edited by Vangelis

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...