Hi,
I am absolutely clueless when it comes to PHP scripting. I've spent a couple of hours reading through a manual on PHP, but I can't even figure out where to begin.
My application, I think, is fairly simple.
I have an executable which uses an internal web browser. In it, there are several commands which I would like to replace with my own commands. In particular, the program has a call
http://www.navinfo.org/apt.php?id=%s Where %s would be replaced with the name of a facility which I can select on a map.
I'd like to replace it with
http://www.airnav.com/aiports/%s
but when I replace the first command with the second it only outputs
http://www.airnav.com/airports
The airports facility search page, and doesn't give me the particular page I am looking for.
So it occurred to me, since I am limited to a maximum of 40 characters for each command, and airnav.com doesn't appear to have an ability read programmatically; I could host a php script which, when passed a variable, outputs the correct string I want to the program which is running the script.
So what I am thinking of is just something simple, like, in the executable:
http://www.fssetup.com/apt.php?id=%s
which runs
apt.php, which contains:
<?php
print("http://www.airnav.com/airports/"+$id)
?>
Of course this doesn't work, I get back a 404 error. Could somebody please help me develop this application? I don't even know how to set up the php file or where to put it. I'm assuming I can just put it in my root directory at my website and it should just work if properly written.



Reply With Quote
(:
Bookmarks