Hi all I have the following in my code: script: function (input) { return "flightdb.php?input="+input}, Code (markup): However I need the flightdb.php to sit on a different server so how would I insert it in the attached eg: http://www.mydomain.co.za/common/flightdb.php? (etc ) Please assist....
have you tried: script: function (input) { return "http://www.mydomain.co.za/common/flightdb.php?input="+input},
you need a proxy script on your own server, which fetches these contents via php and serves them frmo your domain to the browser. very simple one without any error checking: <? $x=file_get_contents("http://www.mydomain.co.za/common/flightdb.php?input=$_GET[input]"); echo $x; ?> put this code into a file called "flightdb.php" and put it on your server.
you put this script in a single php file? : <? $x=file_get_contents("http://www.mydomain.co.za/common/flightdb.php?input=$_GET[input]"); echo $x; ?> Code (markup): try this one just for testing, it should show a google-startpage...: <? $x=file_get_contents("http://google.com"); echo $x; ?> Code (markup): if this one also throws the same error, your PHP is running in SAFE_MODE with URL_FOPEN wrappers turned off. try to allow URL_FOPEN stuff in your cpanel, if not working ask your host.
I had a problem with dotnetpark not letting me turn on URL_FOPEN wrappers...just like I said...Policy issues
Thank you for the input... Just so I have you right I create a file called flightdb.php and put the above code in and leave the original js as it is....I can access the page and it brings up the xml feed however it does not work it throws the error: here is the test page: http://www dot cheapfares dot co dot za/engine/booking_engine_table.htm The coee works the auto suggest for to and from fields