Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

ATC online code.


Luca Benelli
 Share

Recommended Posts

Luca Benelli
Posted
Posted

the complete code is in the first post

 

Are you running this on a windows server?

Luca Benelli - C3 - P2

Link to comment
Share on other sites

Daniel Hawton
Posted
Posted
the complete code is in the first post

 

Are you running this on a windows server?

 

Unless he modified something that caused that variable to no longer exist. That's why I was asking him to post the code of what he is running instead of the original.

Link to comment
Share on other sites

Ahmed Radwan
Posted
Posted
the complete code is in the first post

Are you running this on a windows server?

 

Linux.

 

Unless he modified something that caused that variable to no longer exist. That's why I was asking him to post the code of what he is running instead of the original.

 

I haven't changed anything but the /path/to/file/ paths.

-------

 

The problem has now changed, I found a mistyped file name, that appears to have caused the original problem, but now, I have another problem..

 

Warning: fopen(http://www.net-flyer.net/DataFeed/vatsim-data.tx) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /public_html/path/online.php on line 70

 

Here's the script I'm running http://pastebin.com/HvusFdwG

 

Edit: Also, is it normal that it is trying to open (vatsim-data.tx) not (vatsim-data.txt)

 

Thanks for the help, everyone!

AHMED RADWAN
Deputy Director
##  [email protected]   
##  www.vatme.net
    
     Signature.png.ebeb12713b17feaba5b97c3b8a413f39.png

 

 

 

 

Link to comment
Share on other sites

Luca Benelli
Posted
Posted

$lung=strlen($remotedatafilename);
$lung--;
$lung--;
$remotedatafilename=substr($remotedatafilename,0,$lung);

 

find this part and remove one fo the "$lung--;" lines...

 

I don't know why it sometimes needed to be cut down by one OR two chars... never really lost much time on this part of the code.. should have fixed that try this and see what happens

Luca Benelli - C3 - P2

Link to comment
Share on other sites

Ahmed Radwan
Posted
Posted
$lung=strlen($remotedatafilename);
$lung--;
$lung--;
$remotedatafilename=substr($remotedatafilename,0,$lung);

 

find this part and remove one fo the "$lung--;" lines...

 

I don't know why it sometimes needed to be cut down by one OR two chars... never really lost much time on this part of the code.. should have fixed that try this and see what happens

 

Not sure why I didn't notice that, but anyway, working now as a charm! Marvelous work man! Many Thanks!

AHMED RADWAN
Deputy Director
##  [email protected]   
##  www.vatme.net
    
     Signature.png.ebeb12713b17feaba5b97c3b8a413f39.png

 

 

 

 

Link to comment
Share on other sites

  • 2 years later...
Brent Neil 1121018
Posted
Posted

Hello Everyone,

 

My FIR is trying to get a Controller statistics page going. We want to be able to display top ten controllers from the month on the sidebar of our page and a seperate page that contains statistics since tracking was available on our website.

 

I apologize but I have read through several posts on this forum trying to figure out how to make it happen. The problem is not one person in our FIR has any coding experience. If anyone could help me out with this I would greatly appreciate it!

Link to comment
Share on other sites

  • 1 year later...
Curshad  Nairn 1160403
Posted
Posted

Hey guys how does it work any download links for me to download then upload? Or i'll have to create these ?

Link to comment
Share on other sites

Luca Benelli
Posted
Posted

Sorry for the delay.

 

You will need at least basic coding experience, even a ready made package won't help you if you don't know how to customize it for your needs.

I think we posted something already previously, try reading through the webmasters forum (might be it got lost last year). There also are a couple of "ready made" packages for VAs and vACCs which might help.

Luca Benelli - C3 - P2

Link to comment
Share on other sites

 Share