Vatsim Online

So I’ve been asking around for a while now and I’ve seen others doing the same on how to take pilot data off vatsim and display it on their website.

So I googled and finally, after about 3 months of hunting found a script called “VatsimPHP”. Its freeware and easy to use.

If you dont know much about php, the online manual helps alot.

Link: http://www.bbflights.com/VatsimPHP/

-Thomas.

Yeh thats what we use to display from Vatsim, we have used it on another server and embedded it in to the tpl either as embed object or iframe cant remember off the top of my head now.

But yeh its real easy to get what you want to display.

why can not download the VATSIMPHP more on the website is user name and password, just for one, who can help who has the program and can post it again

You need to google and find the file. The post above was not offering the file for download. They were simply demonstrating the script in action.

This is what doing a search resulted for me. http://forums.vatsim.net/viewtopic.php?t=21014

Good luck with it.

Is it possible to use it for IVAO too? Maybe some simple changes?

This code is working in my VA, just replace spanish words to english and TPR icao.

<?php

require_once(“VatsimPHPgenerator.php”);

$VatsimPHP=new VatsimPHP;

echo “<CENTER><FONT SIZE="3"><B><U>Pilotos en Vuelo Conectados a VATSIM</U></B></FONT></CENTER>”;

echo “<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0">”;

$pilotlist=$VatsimPHP->airline(array(“TPR”));

for($i = 0; $i < count($pilotlist); $i++)

{

echo “<TR><TD WIDTH="100%" STYLE="border: 1 solid #003C00"><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0">”;

echo “<TR><TD WIDTH="100%" COLSPAN="4" BGCOLOR="#DDDDDD">   <FONT SIZE="2"><B>”.$pilotlist[$i][2].“</B></FONT></TD></TR>”;

echo “<TR><TD WIDTH="20%" ROWSPAN="3" VALIGN="TOP" ALIGN="CENTER" STYLE="border: 1 solid #DDDDDD"><FONT SIZE="1"><A HREF="http://www.vataware.com/pilotredir.cfm?cid=".$pilotlist[$i][1].”">“.$pilotlist[$i][0].”</A><BR>";

if($pilotlist[$i][9])

{

echo $pilotlist[$i][9];

}

echo “<BR>”;

if($pilotlist[$i][21])

{

echo $pilotlist[$i][21].“FR”;

}

echo “</FONT></TD>”;

echo “<TD WIDTH="20%" STYLE="border: 1 solid #DDDDDD"><FONT SIZE="1">”.$pilotlist[$i][8]." KT</FONT></TD>";

echo “<TD WIDTH="10%" VALIGN="TOP" ROWSPAN="7" STYLE="border: 1 solid #DDDDDD"><FONT SIZE="1">”.$pilotlist[$i][11].“<BR>”.$pilotlist[$i][13].“<BR><BR>”.$pilotlist[$i][28].“</FONT></TD>”;

echo “<TD WIDTH="50%" VALIGN="TOP" ROWSPAN="5" STYLE="border: 1 solid #DDDDDD"><FONT SIZE="1">”;

if($pilotlist[$i][30])

{

echo $pilotlist[$i][30]."<BR><BR><B>RMK:</B> ".$pilotlist[$i][29];

}

echo “</FONT></TD></TR>”;

echo “<TR><TD WIDTH="20%" STYLE="border: 1 solid #DDDDDD"><FONT SIZE="1">”.$pilotlist[$i][7]." FT</FONT></TD></TR>";

echo “<TR><TD WIDTH="20%" STYLE="border: 1 solid #DDDDDD"><FONT SIZE="1">”.$pilotlist[$i][12].“</FONT></TD></TR>”;

echo “</TABLE></TD></TR>”;

}

if(count($pilotlist) == “0”)

{

echo “<TR><TD WIDTH="100%" COLSPAN="2" ALIGN="CENTER"><FONT SIZE="1.5">Por el momento no hay Pilotos en Vuelo.</FONT></TD></TR>”;

}

echo “</TABLE>”;

?>

You need to google and find the file. The post above was not offering the file for download. They were simply demonstrating the script in action.

This is what doing a search resulted for me. http://forums.vatsim.net/viewtopic.php?t=21014

Good luck with it.

said this page VATSIM where PHP is available, there are no more, have already contacted the owner, it probably has been set.

I have the files, I’ll zip em up for you guys. Brian’s site is closed

that would be very good if you would provide it.

'm definitely interested

I will probably get in trouble and forced to take it off but the files are available on www.fspaintshop.com, so get them while you can. I included and example read me in the directory. Do not change the name of the included directory. Just unzip and put the directory on your server.

Tnx Roger

Regards,

Cor

thanks, I got it

have a question, is there a manual how can I put it in phpvms

I forgot to include one file, the most important one that makes it work..LOL sorry…re download to get it. the vatsimPHPgenerater.php wasn’t in the download and you need that outside of the directory on your server to work. You implement this using the example i included.

I downloaded it, just as is the manual to include on the website, is there a manual

Is there a guide for it?

Is there a guide for it?

There was on his site till he closed it.

What do you need to know?

How do I implement this? I used the code posted above, but keep getting erros, and no idea how to fix them. There was no example text file included in the download.

Im not at home at the moment, basically all you need is the files,

Create a folder in your root, vatstats or something, then in that you need another folder vatsimphpfiles, in there you have blank text files for airports.txt customization.txt,metars.txt,satnet-data.txt and status.txt, make them all 764 (permissions).

Then you should have the following files in your vatstats folder,

all.php

vatpilots.php

vatsimnow.php

VatsimPHPgenerator.php

To display on your pages, just do an include or iframe,

So,

<iframe id=“Vatsim” src="http://yoursource.com/vatstats/all.php" width=680px height=300px marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=yes></iframe>

These files All can be customized to display your callsigns only or everyone on vatsim.

how can I integrate the vasimphp at phpvms because no readme Here

where can I get these files:

all.php

vatpilots.php

vatsimnow.php

can anybody help me?

where can I get these files:

all.php

vatpilots.php

vatsimnow.php