[Free] FlightAware Schedule Puller

2 minutes ago, elfrost said:

honestly, i did not use for long time so maybe i would get some issues.
but it could be a good starting point I guess or another way to grab those datas

 

Yep, good intentions  I guess this thread can be everything about pulling flightdata for free for import to phpvms

1 Like

Getting this

Parse error : syntax error, unexpected ‘}’, expecting end of file in  index.php  on line  216

removed 2 } which got rid of error but script just spits out lines of code

if(isset($\_POST['airline'])) {

That is from the first if command, how can you not have that? Did you download the code from my github or did you copy paste? Make sure to include the html code in the top of the document, otherwise the $_POST will return an index error  

this error is because on two lines after <? missing php

line 66 and 148

42 minutes ago, RuiMiguel said:

this error is because on two lines after <? missing php

line 66 and 148

Hate to shatter your dreams but that’s not why… You can close and open multiple times in a php file (otherwise I wouldn’t be able to print the data into the table ).

That issue should not be existing if you properly copied and pasted and made sure that all the syntax is included in the new file.
I also have to state that this should not be run on the server, don’t paste this anywhere on the website.

I am also curious which php version people whom are getting this error are running.

that’s how I solved the mistake 

 

7 minutes ago, RuiMiguel said:

that’s how I solved the mistake 

 

Hey, as we say here at phpvms, if it’s stupid, but it works, it ain’t stupid

On 11/22/2017 at 2:07 PM, RamiAbouZahra said:

Hey, as we say here at phpvms, if it’s stupid, but it works, it ain’t stupid

A good landing is one you walk away from. I just moved this to the right forum

2 minutes ago, Nabeel said:

A good landing is one you walk away from. I just moved this to the right forum

A great landing is one where you can use the plane again. +1 for the correct forum

how do you get it to pull and work tho 

On 22/11/2017 at 8:59 PM, RuiMiguel said:

that’s how I solved the mistake 

 

I know the issue, you’re using windows server right? Well, for some reason they can’t accept short tags and therefore don’t see the <?. I’ll push a commit later fixing this

Hello sir 

 

I have signed up for a API key but i cant pull anything and i dont no how to do this 

13 hours ago, Michael2015 said:

Hello sir 

 

I have signed up for a API key but i cant pull anything and i dont no how to do this 

It’s not finished yet, and you should at least be able to pull some flight data if you’re on linux  I need a bit of time to port it over to windows (I know what the issue is, it’s my fault for doing the shortcut way :p)

I fixed the issue where it errored out due to premature closing tags and whatnot, it was due to most of you not having the short opening tags enabled but I replaced them with the full opening tags.

On 31/12/2017 at 4:46 PM, RamiAbouZahra said:

I fixed the issue where it errored out due to premature closing tags and whatnot, it was due to most of you not having the short opening tags enabled but I replaced them with the full opening tags.

no im on windows and i am unable to pull anything from there 

Hey ,

I am having trouble knowing what to do because I am not really a coder. If you could help me out that would be great!

I already changed the two inputs for the Airline Code at the top to QTR and have inputted my FlightAware info into the $apiUserID and $apiKey but I don’t know what to do next.

 

Thanks,

Brent

3 hours ago, brent11292 said:

Hey ,

I am having trouble knowing what to do because I am not really a coder. If you could help me out that would be great!

I already changed the two inputs for the Airline Code at the top to QTR and have inputted my FlightAware info into the $apiUserID and $apiKey but I don’t know what to do next.

 

Thanks,

Brent

Hey, this project is not finished, so currently it only pulls the data and stores them into a csv file (you can make a cron job to run it). The end project is finished, I have it running right now collecting flight info and saving them in a database, but I need to fully test it for about a week before I release it into the open

22 minutes ago, RamiAbouZahra said:

Hey, this project is not finished, so currently it only pulls the data and stores them into a csv file (you can make a cron job to run it). The end project is finished, I have it running right now collecting flight info and saving them in a database, but I need to fully test it for about a week before I release it into the open

So how would you make a cron job to run it? Sorry just not experienced in coding. Also, how long would you think this would be released as a finished product?

16 hours ago, brent11292 said:

So how would you make a cron job to run it? Sorry just not experienced in coding. Also, how long would you think this would be released as a finished product?

Once the whole thing has been tested and rewritten (I mean, have you seen the code? It is the definition of spaghetti), I will announce on how to install it and documentation  

9 hours ago, RamiAbouZahra said:

Once the whole thing has been tested and rewritten (I mean, have you seen the code? It is the definition of spaghetti), I will announce on how to install it and documentation  

Oh ok then.