# Vatsim Online

**URL:** <https://forum.phpvms.net/t/vatsim-online/3157>\
**Category:** Development Help\
**Created:** [August 2, 2010, 10:34am UTC](https://forum.phpvms.net/t/vatsim-online/3157 "2010-08-02T10:34:57Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 10, 2011, 3:32pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/21 "2011-03-10T15:32:28Z")

</div>

> can anybody help me?
> 
> where can I get these files:
> 
> all.php
> 
> vatpilots.php
> 
> vatsimnow.php

PM me with your e-mail and i’ll send you the files with some little instructions.

Regards

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [March 21, 2011, 9:43am UTC](https://forum.phpvms.net/t/vatsim-online/3157/22 "2011-03-21T09:43:16Z")

</div>

I got the email, but the files you sent me are the ones I got from simpilot. Would like to get the, all.php, vatpilots.php and vatsimnow.php

---

<div class="post-metadata">

**Author:** ![Rickisani](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rickisani/32/121_2.png) [@Rickisani](https://forum.phpvms.net/u/Rickisani)\
**Post date:** [March 21, 2011, 12:30pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/23 "2011-03-21T12:30:47Z")

</div>

> I got the email, but the files you sent me are the ones I got from simpilot. Would like to get the, all.php, vatpilots.php and vatsimnow.php

These files I search, but finding nothing

---

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [March 21, 2011, 2:31pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/24 "2011-03-21T14:31:19Z")

</div>

Dear all, just we know those files are very difficult to find, i explain in PM messages when i offer my help i thought you need just the vatsimphp generator and other files included in my e-mails. Once again i apologize for this misunderstanding, i’m still looking for the files to send.

Regards

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [March 29, 2011, 7:48pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/25 "2011-03-29T19:48:33Z")

</div>

I have the files on fspaint shop…Are you guys still having trouble?? I’ll post how I use it on Kesuk.

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [March 29, 2011, 7:53pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/26 "2011-03-29T19:53:44Z")

</div>

Ok, The directory “VatsimPHPfiles” goes in your site root directory, it should only contain the .txt files. The file VatsimPHPgenerator.php also goes in your site root by itself, not in any directory.

Here is an example of how I use it.

```
<?php

require_once("VatsimPHPgenerator.php");

$VatsimPHP=new VatsimPHP;

$pilotlist=$VatsimPHP->airline("put your va's call letters here");

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

{

     echo '<p>';

	echo $pilotlist[$i][0].':';

	echo $pilotlist[$i][2];

	echo '</p>';

}

if(count($pilotlist) == "0")

{

	echo "<p>Currently no operations</p>";

}

?>

```

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [April 4, 2011, 10:40pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/27 "2011-04-04T22:40:54Z")

</div>

I am getting these errors:

```
[b]Warning[/b]: copy() [[url="http://malaysiava.org/function.copy"]function.copy[/url]]: URL file-access is disabled in the server configuration in [b]/home/globalai/public_html/malaysiava.org/VatsimPHPgenerator.php[/b] on line [b]63[/b]

[b]Warning[/b]: copy(http://info.vroute.net/vatsim-data.txt) [[url="http://malaysiava.org/function.copy"]function.copy[/url]]: failed to open stream: no suitable wrapper could be found in [b]/home/globalai/public_html/malaysiava.org/VatsimPHPgenerator.php[/b] on line [b]63[/b]

[b]Warning[/b]: copy() [[url="http://malaysiava.org/function.copy"]function.copy[/url]]: URL file-access is disabled in the server configuration in [b]/home/globalai/public_html/malaysiava.org/VatsimPHPgenerator.php[/b] on line [b]65[/b]

[b]Warning[/b]: copy(http://www.klain.net/sidata/vatsim-data.txt) [[url="http://malaysiava.org/function.copy"]function.copy[/url]]: failed to open stream: no suitable wrapper could be found in [b]/home/globalai/public_html/malaysiava.org/VatsimPHPgenerator.php[/b] on line [b]65[/b]

```

How do I fix them?

---

<div class="post-metadata">

**Author:** ![Industrialshadow](https://forum.phpvms.net/user_avatar/forum.phpvms.net/industrialshadow/32/97_2.png) [@Industrialshadow](https://forum.phpvms.net/u/Industrialshadow)\
**Post date:** [June 11, 2011, 6:15pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/28 "2011-06-11T18:15:22Z")

</div>

i become the failure

```
Warning: copy(VatsimPHPfiles/satnet-data.txt) [function.copy]: failed to open stream: Permission denied in /www/htdocs/w00dac26/lausitzair/lib/skins/ObsessBlue/VatsimPHPgenerator.php on line 63

Warning: copy(VatsimPHPfiles/satnet-data.txt) [function.copy]: failed to open stream: Permission denied in /www/htdocs/w00dac26/lausitzair/lib/skins/ObsessBlue/VatsimPHPgenerator.php on line 65

```

can anybode help me

the vatsimphpfiles are in the root of my site and the vatsimphpgenerator is in the skin folder

thx

---

<div class="post-metadata">

**Author:** ![Tylor\_Eddy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tylor_eddy/32/48_2.png) [@Tylor\_Eddy](https://forum.phpvms.net/u/Tylor_Eddy)\
**Post date:** [September 18, 2011, 2:44am UTC](https://forum.phpvms.net/t/vatsim-online/3157/29 "2011-09-18T02:44:33Z")

</div>

G’day,

I would like to display an amount for all pilots an ATC, as well as my pilots online on vatsim using this code, how would i got about displaying the pilots and ATC online ?

I’ve seen it done before, i’m not sure how it was done though.

Also, I’ve just tried this code

```
<?php

require_once("VatsimPHPgenerator.php");

$VatsimPHP=new VatsimPHP;

$pilotlist=$VatsimPHP->airline("put your va's call letters here");

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

       {

            echo '<p>';

               echo $pilotlist[$i][0].':';

               echo $pilotlist[$i][2];

               echo '</p>';

       }

if(count($pilotlist) == "0")

       {

               echo "<p>Currently no operations</p>";

       }

?>

```

I would like to display an amount of pilots, not every pilot with that callsign, how can i edit this to display a number for the amount of pilots online ?

Cheers

Tylor

---

<div class="post-metadata">

**Author:** ![lorlandi](https://forum.phpvms.net/user_avatar/forum.phpvms.net/lorlandi/32/52_2.png) [@lorlandi](https://forum.phpvms.net/u/lorlandi)\
**Post date:** [September 18, 2011, 11:30pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/30 "2011-09-18T23:30:02Z")

</div>

I have the following warning on my page:

Warning: copy() [function.copy]: Filename cannot be empty in /home/xxxx/xxxxx/VatsimPHPgenerator.php on line 63

Warning: copy() [function.copy]: Filename cannot be empty in /home/xxxxx/xxxxx/VatsimPHPgenerator.php on line 65

Any have a solution, all was working good untill two weeks ago, and realy don`t now how solve this problem.

Regards

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [October 1, 2011, 10:07pm UTC](https://forum.phpvms.net/t/vatsim-online/3157/31 "2011-10-01T22:07:53Z")

</div>

That means something is wrong with the .txt files in the vatsimphp directory

[Previous page](https://forum.phpvms.net/t/vatsim-online/3157.md?page=1)
