Jump to content

samjsharples

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About samjsharples

  • Rank
    Member
  1. How could I do this to show multiple results? Say if array A&B both contain the text I am looking for? Any ideas?
  2. Hi. I have a list of products and each have parts which in turn have their own codes. I need to find the correct part when I have the code. So in the example below, I already have the code '8R195'. I want to check through all the arrays and find which one contains this code, so the output would be A in this case. Any help greatly appreciated $item1 => Array ( ('A') => array('825R15', '825R16', '65R17', '21575R175', '8R195'), ('B') => array('10R225', '825x20', '900R20'), ('C') => array('15R225', '29575R225', '30570R225', '38565R225') )
  3. Hi I have an ecom site and some customers prefer to call with their order. I was thinking of creating an online 'shopping list' popup where they can type their order whilst browsing the site and then send via email when they're ready. I'm not sure what to look for if there is anything like this already available. Does anybody know of any type of widget/plugin/functionality I could use for this? Thanks Sam
  4. Hi requinix Thanks for your answer. I'm still struggling to use this. How can I use the variable $date once this has been executed? If I use print_r I just get a long page load then a timeout message but the XML isn't even that big? Any clues? Thanks Sam
  5. I am being sent an XML feed which needs to be downloaded in a 'compressed way'. The example I have been given is this: $url = 'http://myurl.com'; $headers[] = "Accept-Encoding: gzip,deflate"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); $data = curl_exec($ch); but the output I am getting is jargon like this with loads of black diamond question marks:� +T��sƒ���-}#v���]K���������HB�$&G�����Y�����'߷s�,�.4֫'?'���9;*9^��>�j~�ǫ}z|hq�J��Գ".o2)~b​���U~I| How to a convert it back into XML? Many thanks
  6. Hi I'm looking for some advice on how to parse an xml feed and display any odds on my site Here is an example http://feed.youwincdn.com/web/xml/en/youwin_football.xml and as you can see it is quite large so calling it every time would have an impact on the server. I am looking at using many different feeds in the future so want to start this properly and in a scaleable way. I want to use php but open to any ideas on the best way to do this Many thanks Sam
  7. Hi guys I'll try keep this simple I have been given access to a betting xml feed which requires my IP to be whitelisted. I have whitelisted my home IP and it works fine. I have whitelisted an IP on server 1 (linux, cpanel), this works fine I have whitelisted an IP on server 2 (linux, cpanel), this doesn't work and I get: "simplexml_load_file failed to open stream: http request failed!" The IP is definitely whitelisted but I think it is something to do with the server. What could be blocking this? allow_url_fopen and allow_url_include are both on by the way Many thanks Sam
×
×
  • 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.