Jump to content

druptown

Members
  • Posts

    31
  • Joined

  • Last visited

Posts posted by druptown

  1. I've been looking at the code and was wondering how I can change that it doesn't only look at the current location, but looks for those flights with a defined "destination airport".

    Let's say I'm at KORD, and I want to fly to Lukla in the hymalaya's.

    It knows my current location and I enter the ICAO for lukla. Then the script should look for connection flights that get me to Lukla. no matter how many legs it takes. If a flight is missing, it should create a connnecting charter flight.

  2. I don't like the iframes. That's why I use this:

    <?php
    $location = "EGLL";
    
    get_metar($location);
    
    function get_metar($location) {
    $fileName = "http://weather.noaa.gov/pub/data/observations/metar/stations/$location.TXT";
    $metar = '';
    $fileData = @file($fileName) or die('METAR not available');
    if ($fileData != false) {
    	list($i, $date) = each($fileData); 
    
    	$utc = strtotime(trim($date));
    	$time = date("D, F jS Y g:i A",$utc);
    
    	while (list($i, $line) = each($fileData)) {
    		$metar .= ' ' . trim($line);
    		}
    	$metar = trim(str_replace('  ', ' ', $metar));
    	}
    echo "METAR FOR $location (Issued: $time UTC):<br>$metar";
    }
    ?>

    You can change the location to <?php echo $schedule->depicao;?> or arricao in the schedule briefing or details. It's much better than the default METARs in phpVMS because they don't have to load.

    We need to have a form attached to enter the ICAO of choice. When I read this correct it only shows a fixed ICAO or the dep/arricao in a scheduled flight.

    post-2881-085226500 1325763772_thumb.jpg

  3. hey guys,

    happy newyear !!

    we were trying this code but we get this as reply :

    Not Found
    
    The requested URL /weer/weather was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Any ideas?

×
×
  • Create New...