Jump to content

samjsharples

Members
  • Posts

    16
  • Joined

  • Last visited

samjsharples's Achievements

Newbie

Newbie (1/5)

0

Reputation

  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
  8. Thank you very much. Without knowing the specific term 'chained selects' it is very difficult to find what you're looking for. I will do some research and get cracking. Many thanks
  9. Hi. I will try and explain simply. I have a list of item codes eg. size1 Acolor1 size1 Bcolor3 size1 Bcolor1 size1 Acolor3 size1 Acolor4 size2 Acolor1 size3 Bcolor1 size3 Bcolor2 size3 Bcolor2 size3 Acolor1 I want to take these and split them into parts: size1 Acolor2 size1 Bcolor3 etc. Then I want to create a form with 2 dropdowns. The first option would just have all unique sizes so: size1 size2 size3 Then when one is selected, option 2 would show the colours available in that size. Is there a standard way of doing this? Can I use PHP to create the array and then jquery to display and hide the options? I'm totally stuck and i'm not just looking for somebody to code it all for me. any help would be greatly appreciated thanks Sam
  10. Hi all. I'm relatively new to php (3 years) so any suggestions before I start this project would be greatly appreciated. I have about 10 xml feeds from various betting websites and want to create a bet comparison site a bit like http://www.oddschecker.com/ I'm guessing these sites don't request the xml feed directly from each supplier on every page load but how does this work with live odds? If I were to download the xml feed to my server it would have to be done quite frequently to keep up-to-date. Is there a better way to do this? Any other suggestions or things to think about would be also appreciated many thanks sam
  11. the domain is supersoccersite.com. Could somebody please confirm what IP I should be requesting to be whitelisted. Thanks
  12. Ok, another strange thing now. I have had another betting company ask for the IP to be whitelisted and that one isn't working either!! I'm sure i'm asking for the correct IP but could it be the fact that it is a shared hosting box? What else could be preventing this from working? I had my own dedicated server whitelisted and that one works, it's just this clients one that isnt working...
×
×
  • 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.