Results 1 to 8 of 8

 

Thread: product search

  1. #1
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts


    hopefully someone here can help

    I want to include some results in my pages using php include.

    Firstly if I search for anything more than a 1 word query I get no results (TD know about this, a problem their end)

    So I do my one word query and have my results url, php include it and I get this error:

    Parse error: parse error in http://pf.tradedoubler.com/pf/pf?a=2...&firstResult=0 on line 1

    but If I type that url in direct or use an iframe the results show, so why wont php display the results

    has anyone managed to do this?

    ta
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays

  2. #2
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    2,448
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Replace include with readfile and it should work.

    include tries to process any PHP in the file, and there is an xml line at the start of the file that will be confusing the PHP interpreter.

    readfile just downloads the file and outputs it as part of the page, not caring about what it contains.

    Hope that helps.

  3. #3
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts


    your right! your a genious! it works, I thank you very much and am in your debt.

    made it sound so simple too, but there only easy if you know the answers...

    again, thanks
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    2,448
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No problem.

  5. #5
    Keith's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Richmond North Yorkshire
    Posts
    2,540
    Thanks
    172
    Thanked 119 Times in 83 Posts
    when pulling in search results with prices im getting  before the prices as in £64.95 does anyone know how to get rid of this? its the same with include or readfile
    Keith ~ My Blog general ramblings. Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)

  6. #6
    ShagaaDaggaDoo

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Surrey
    Posts
    1,150
    Thanks
    0
    Thanked 9 Times in 6 Posts
    try this in your meta tags..

    PHP Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    If that dosent work then use a php replace, not the best way to do it but works. Depending on how your page is constucted ie somthing like..


    PHP Code:
    $DataPrint[1] = str_replace("Â"""$DataPrint[1]); 

  7. #7
    Keith's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Richmond North Yorkshire
    Posts
    2,540
    Thanks
    172
    Thanked 119 Times in 83 Posts
    thanks, ended up with

    PHP Code:
    $GrabURL "http://";
    $GrabStart "";
    $GrabEnd "";
    $RetrieveFile file_get_contents($GrabURL);
    $GrabData eregi("$GrabStart(.*)$GrabEnd"$RetrieveFile$DataPrint);
    $DataPrint[1] = str_replace("Â"""$DataPrint[1]);
    echo 
    $DataPrint[1]; 
    Keith ~ My Blog general ramblings. Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)

  8. #8
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts
    can we add epi to product search results?
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Product Feed System Release
    By TD Nick in forum TradeDoubler
    Replies: 26
    Last Post: 09-10-09, 01:44 PM
  2. The Link Product Search
    By uklejon in forum TradeDoubler
    Replies: 0
    Last Post: 09-03-05, 10:21 AM
  3. eDirectory Affiliates Newsletter
    By Pistol101 in forum Affiliate Future
    Replies: 0
    Last Post: 22-07-03, 08:48 PM
  4. ARELIS 3 Link Popularity Software
    By Qui Gon Jinn in forum Media Coverage & PR Strategy
    Replies: 4
    Last Post: 05-03-03, 06:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2