Jump to content

oracle765

Members
  • Content Count

    219
  • Joined

  • Last visited

Everything posted by oracle765

  1. I am trying to create a database with the mysql wizard in cpanel ans it is pre pending ccuk_ to the database name i want to call it for example if i want to call it hello-world it names it ccuk_hello-world when i try to rename it to hello-world it says it already exists any ideas
  2. ok i understand but still confused If i load the iframe from the .com.au domain to the 3rd party subdomain IE motorhomes. is the cname all for .com.au i get really low page speed saying preload key requests <iframe src="//motorhomes.compareandchoose.com.au/affiliates.html?rel=search&selected_country=US&pickup_location=Orlando&dropoff_location=Orlando&style=https%3A%2F%2Fwww.compareandchoose.com.au%2Fcss%2Fmotor.css"></iframe> So basically this on on the same domain above produces the perload key requests error but if i load it where the source is
  3. ok i am trying to load the iframe, the below works fine <iframe title="campervanhire" height="400" src="https://MYSUBDOMAIN.compareandchoose.com.au/affiliates.html?rel=search&selected_country=AU&style=https%3A%2F%2Fwww.compareandchoose.com.au%2Fcss%2Fmotor.css"></iframe> I tried pre-loading the frame and then the css IE <link rel="preload" href="https://MYSUBDOMAIN.compareandchoose.com.au/affiliates.html?rel=search&selected_country=AU" as="document"> <link rel="preload" href="https://www.compareandchoose.com.au/css/motor.css" as="style"
  4. hi professionals, not sure if i have posted in the right section as i am stuck with some css and iframe Basically i am trying to use a third party iframe from my sub domain which works fine but i am failing the lighthouse speed check with the message Preload Key Requests My iframe when i try to put preload doesnt work and breaks CSS, just wondering if there is a way around it <iframe title="campervanhire" height="400" src="https://MYSUBDOMAIN.compareandchoose.com.au/affiliates.html?rel=search&selected_country=AU&style=https%3A%2F%2Fwww
  5. Thanks Barand for the prompt response
  6. I have a holiday program which has suddenly stopped working, please see log file error and piece of code. Any ideas? ERROR LOG FILE [19-Jul-2019 09:46:53 UTC] PHP Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '&lt;' not found in /home/ccuk/public_html/low-cost-holidays.php on line 877 [19-Jul-2019 09:46:53 UTC] PHP Warning: SimpleXMLElement::__construct(): EADSDatabaseError error raised, with message : Error 3011: Unknown identifier f in /home/ccuk/public_html/low-cost-holidays.php on line 877 [19-Jul-2019 09:46:53 UTC
  7. ok thanks Barand I will look into this, as you are probably already aware they are in an ini file which sets them to active or none active for each holiday provider, and if i keep adding them it keeps getting slower I will look into this ajax call to see if i can run in parallel many thanks
  8. hi ginerjm I dont know what you mean by that many thanks
  9. hi yes ginergem All travel agents provide the same url structure from the same api provider and take around the same time to return
  10. Hi Guys We have had a holiday program written in php in the past by an experienced developer but we are experiencing problems now. So I am curious to try and resolve the best approach Here goes 1: We query multiple APIs to return holiday results to our users 2: This can take up to 20 seconds to return results but sometimes its much quicker depending on the volume of API returned results 3: Other users seem to be locked out of even visiting our website if an API call is running So initially without posting any code, I have a couple of questions which are
  11. ok update managed to get the port open and it works fine now... thanks for the advice
  12. hi there I have tried that and get this error Fatal error: Uncaught Exception: String could not be parsed as XML in /home/ccuk/public_html/holiday-test.php:18 Stack trace: #0 /home/ccuk/public_html/holiday-test.php(18): SimpleXMLElement->__construct('') #1 {main} thrown in /home/ccuk/public_html/holiday-test.php on line 18
  13. I am looking for someone on a short term basis to extract information from an API we have access too
  14. I see no output still this is what i now have ini_set("display_errors", 1); error_reporting(E_ALL); $holidays_url="http://87.102.127.86:8103/search/searchoffers.dll?page=Resort&countryid=7"; $holidays_curl = curl_init($holidays_url); curl_setopt($holidays_curl, CURLOPT_ENCODING, "gzip"); curl_setopt($holidays_curl, CURLOPT_URL, $holidays_url); curl_setopt($holidays_curl, CURLOPT_RETURNTRANSFER, true); $debugme=curl_exec($holidays_curl); echo $debugme; exit(); //$holidays_xml = new SimpleXMLElement(curl_exec($holidays_curl)); $holidays_xml = new SimpleXMLEle
  15. ok i have this now ini_set("display_errors", 1); error_reporting(E_ALL); $holidays_url="http://87.102.127.86:8103/search/searchoffers.dll?page=Resort&countryid=7"; $holidays_curl = curl_init($holidays_url); curl_setopt($holidays_curl, CURLOPT_ENCODING, "gzip"); curl_setopt($holidays_curl, CURLOPT_URL, $holidays_url); curl_setopt($holidays_curl, CURLOPT_RETURNTRANSFER, true); //$holidays_xml = new SimpleXMLElement(curl_exec($holidays_curl)); $holidays_xml = new SimpleXMLElement(curl_exec($holidays_curl),null,true); //echo $feed->SHOPITEM[0]->ID_PR
  16. ah sorry never realised it had to be in front
  17. $holidays_url="http://87.102.127.86:8103/search/searchoffers.dll?page=Resort&countryid=7"; $holidays_curl = curl_init(); curl_setopt($holidays_curl, CURLOPT_ENCODING, "gzip"); curl_setopt($holidays_curl, CURLOPT_URL, $holidays_url); curl_setopt($holidays_curl, CURLOPT_RETURNTRANSFER, true); $holidays_xml = new SimpleXMLElement(curl_exec($holidays_curl)); $holidays_stdclass=json_decode(json_encode($holidays_xml)); error_reporting(E_ALL); ini_set("display_errors", 1); echo "<pre>"; print_r($holidays_stdclass); This still sh
  18. I am trying to extract data from an API and not to sure where I am going wrong or even doing it correctly for that matter. Initally I cannot even print out the URL values Any help would be greatly appreciated professionals. here is my code, i know the url works in the browser address bar <?php $holidays_url="http://87.102.127.86:8103/search/searchoffers.dll?page=Resort&countryid=7"; $holidays_curl = curl_init(); curl_setopt($holidays_curl, CURLOPT_ENCODING, "gzip"); curl_setopt($holidays_curl, CURLOPT_URL, $holidays_url); curl_setopt($h
  19. thanks for that i will contact them
  20. Hi professionals I am experiencing a huge generating error log file with the following output and error [04-Dec-2017 19:14:44 Australia/Brisbane] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "<?xml version="1.0" encoding="UTF-8"?> <geoPlugin> <geoplugin_request>62.210.201.88</geoplugin_request> <geoplugin_status>206</geoplugin_status> <geoplugin_credit>Some of the returned data includes GeoLite data created by MaxMind, available from &lt;a href='http://www.maxmind.com'&gt;http://www.maxmind.com&l
  21. Hi Experts I did not write this code so i am having trouble trying to resolve the issue now our webpage has stopped working with the error message Failed to load resource: the server responded with a status of 406 (Not Acceptable) Its been running for over a year without any problems so not sure what or where it could exactly be its on our site here is a url reference when we try to visit the details of the listed hotels https://www.compareandchoose.com.au/hotel_details?hotel=140485&cc=AUD&q=%27%20https%3A%2F%2Fcompareandchoose.comencia.com%2Fhotel%2F140485%3Fla
  22. Hi professionals I am implementing an hreflang tag for a number of seperate websites I do not want to show the hreflang tags if one of the pages is = adventure_details trouble is when i am requesting the url it says adventure_details?andthenalongurl So i only want to extract the adventure_details part of the url the code i have so for is case strpos($AUurl,$adventure_list_details) !== false: //This is = to adventure_details in a seperate piece of code in my file case strpos($AUurl,$residential_energy_details) !== false: define('RELCANONICALAU','<link rel="canonical" href
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.