![]() |
[latest new] Exporting flight log online to VA - Printable Version +- FsPassengers Forums (http://www.fspassengers.com/forum) +-- Forum: FsPassengers (http://www.fspassengers.com/forum/forumdisplay.php?fid=3) +--- Forum: FsPassengers General (http://www.fspassengers.com/forum/forumdisplay.php?fid=4) +--- Thread: [latest new] Exporting flight log online to VA (/showthread.php?tid=149) |
[latest new] Exporting flight log online to VA - DanSteph - 23-05-2005 Webmaster of VA see more info inside at bottom. [edit] you can download the php/sql script, see the "tool section" of download. http://www.fspassengers.com/?action=download&cat=All&search=179&searchtype=Id So if your VA admin give you a litle cfg file to put in a FsP folder you have one more menu that appear "Virtual Airline" Here I have two VA set, "VaFsPassengers" and "Virtual Pilot Group" ![]() For test the first one attempt to connect to this site but there is nobody that answer (the requested file is not found) ![]() If the site reply Ok you can now export your flight log to your Virtual Airline: ![]() Inside Code, More infos For webmaster the file that you must provide to each members is really simple: ("anyname.cfg" go into "config_va" folder) ------------------------------------------------------------------------------------ menu_name=Virtual Pilot Group; base_url=http://www.fspassengers.com; path_stats=pageofstats.php; path_export=getflight.php; username=visitor; password=test; ------------------------------------------------------------------------------------ After that FsP use POST http request so you can do whatewer you want at the other side PHP/ASP etc etc.... any script that can understand form POST (html, php, asp etc etc) the format will be open and documented [edit] [... sniped the outdated info] Post Edited ( 08-06-05 02:06 ) Re: [latest new] Exporting flight log online to VA - DanSteph - 23-05-2005 Outdated info... The idea remain the same but it's more complex now... You can setup you units when FsP connect to your site and FsP send you the correct unit.... something like that (it will change again) Code: [FsPAskToRegister] => yes Re: [latest new] Exporting flight log online to VA - VOZ_JLC - 23-05-2005 Awsome work guys im a manager of our Australian VA myself and this feature is nothing short op TOP CLASS! I'll be sure to strongly recommend this add on to all my pilots and those i come across!! BRILLIANT!! Feel free to check us out @ http://www.angelfire.com/oz2/vozflight/
Thanks Josh C (VOZ_JLC Hub manager of Virual Oz Flight) Re: [latest new] Exporting flight log online to VA - DanSteph - 23-05-2005 I see that you have somes financial income ? What is nice with the FsP system is that you can mix the data in any way you want, ignore those that you don't want and record in Db and present the one you need in any form... Some may ignore the penality text, point or passengers advice (pure flight log) while some might preffer to record all... Second things that is nice everyone is able to deal with POST data... the script that receive them make 10 lines... this make FsP compatible with any code... Dan Re: [latest new] Exporting flight log online to VA - Shandon - 23-05-2005 We where just talking about this on our V.A. forum...If it (Fsp) would work with our airline...Simply wonderful Re: [latest new] Exporting flight log online to VA - StephanP - 23-05-2005 Just wanted to be clear about the Host site, is this assuming that the VA runs MySql, or MS Access etc., Cheers ![]() Re: [latest new] Exporting flight log online to VA - JayKae - 23-05-2005 Hey Shandon ;P Re: [latest new] Exporting flight log online to VA - DanSteph - 23-05-2005 Quote:StephanP wrote: In fact with this POST method you can even do a basic script that simply write the data in a file that you can view with another page... If you can do something with form data as below: <form action="http://server.com/getflight.php" method="POST"> Enter cargo weight <INPUT type="text" name="CargoWeight"><BR> Enter MTOW <INPUT type="text" name="Mtow"><BR> Enter aircraft name <INPUT type="text" name="AircraftName"><BR> Enter aircraft start weight <INPUT type="text" name="StartAircraftWeight"><BR> Enter aircraft end weight <INPUT type="text" name="EndAircraftWeight"><BR> Enter departure ICAO <INPUT type="text" name="DepartureIcaoName"><BR> Enter arrival icao <INPUT type="text" name="ArrivalIcaoName"><BR> ..... etc. etc. <INPUT type="submit" value="Send"> <INPUT type="reset"> </form> FsP do exactly the same then this form: it send POST data to the script in "form action" so the script can be cgi, java, asp, php or whatewer that is able to take post data and write them at any place. My personnal preffered method is of course PHP and SQL base as you can do something really nice. At worse you can do a basic script that write the data in a text file, but this would be uggly of course... FsP will be provided with basic chunk of PHP to record the data in a SQL table... At worse the format of what send FsP will be fully documented and open... Dan Post Edited ( 05-23-05 15:29 ) Re: [latest new] Exporting flight log online to VA - DanSteph - 23-05-2005 Success !! First flight registred in a SQL database... For those that know SQL here is how the flights table look... not a tiny one ![]() Code: CREATE TABLE flights ( Re: [latest new] Exporting flight log online to VA - DanSteph - 24-05-2005 Basic PHP/SQL script done, you will be able to download it for your website, it's very simple to use and very clear given that your site have PHP/SQL abilities and that you are able to tune a bit PHP to make nice report... The admin part can even create the SQL table for you so making your site able to receive FsP flights log is a matter of minutes... See : http://www.fspassengers.com/?action=va Dan Re: [latest new] Exporting flight log online to VA - VOZ_JLC - 24-05-2005 Woooooowwwww!!!!!!! guys this just seems to be getting better and better each day i read a "post" AWSOME work I fyou guys are into making scenery, with your proven efforts shown here, You's should look in to making a complete scenery package for Australia as the JUNK out now is not of any decent standard at all... Any ways thanks for your time Josh C, VOZ_JLC Hub manager @ http://www.angelfire.com/oz2/vozflight/ Re: [latest new] Exporting flight log online to VA - StephanP - 30-05-2005 Hi All I have tried and tested the Scripts for the receipt of Files from FSP into the SQL database, and it works like a dream, I have also tried this same routine on my SQL Server (7/2000 etc.,) and the script just needed a little tweeking but worked fine. For those that don't have SQL on there hosted servers I have started to write another routine to accept MDB's. Dan, if you are reading this then perhaps you could reply to my recent email about Software....... Cheers BTW., the Section for adding Users is not working, manual input into the table works ok, so will be working on that, unless you have some updated scripts that you can hand over. Steph ![]() Re: [latest new] Exporting flight log online to VA - DanSteph - 30-05-2005 Quote:StephanP wrote: Hello Steph, sorry I've been busy like hell last hours, I'll reply soon to your mail... Dan Re: [latest new] Exporting flight log online to VA - StephanP - 30-05-2005 Quote:DanSteph wrote: Thank you. Brillant work btw., (yeah I know I am sucking up a bit here, but it don't hurt) Re: [latest new] Exporting flight log online to VA - DanSteph - 30-05-2005 no problem ![]() Dan |