1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

FREEBS - Free Book Store Release

Discussion in 'Products & Tools' started by noppid, Apr 13, 2005.

  1. #1
    I posted the working code with a default working template.

    Check out the code and beat it up a little. It seems to work well and be extremly fast displaying pages. :)

    FREEBS - Free Book Store

    Thanks
     
    noppid, Apr 13, 2005 IP
    kyle422, ResaleBroker and obenix like this.
  2. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thanks for sharing the code noppid! :)
     
    kyle422, Apr 13, 2005 IP
  3. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Very clean code, easy to understand and simple set up.
     
    kyle422, Apr 13, 2005 IP
  4. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #4
    The code comments are the only way I can remember what I did anymore. ;)

    Thanks
     
    noppid, Apr 13, 2005 IP
  5. mizt

    mizt Active Member

    Messages:
    772
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Fishing Books

    There she is. Replaced the Freebie one as this one seems much cleaner. Would someone good at mod-rewrites mind doing one for this?
     
    mizt, Apr 13, 2005 IP
  6. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #6
    I'm feeling like hell and wore out. I'd like to do that too. I need to read and learn how though. But I need a night of rest.

    If someone can help with that I'd appreciate any tips.

    BTW, that is awsome fast on your site. Nice 1500 count too.
     
    noppid, Apr 13, 2005 IP
  7. mizt

    mizt Active Member

    Messages:
    772
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #7
    Man, go to bed, I'm sure I can find some one on this site to help me out or I'll read up on it, can't be that hard.
     
    mizt, Apr 13, 2005 IP
  8. mizt

    mizt Active Member

    Messages:
    772
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #8
    Gave up on the mod-rewrite. Got everytihng working alright. Great script. Using some FFA links to help get the spiders going. Hopefully google sucks this one up better then the Freebie script. Any tips for getting this deep indexed let me know. Also got the coop on there though with no pages index it doesn't make any difference.

    Feature Request
    Similar items display the books on your web site with your web site links not links on amazon. This would make for some great anchor text.
     
    mizt, Apr 13, 2005 IP
  9. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #9
    OK, make similars internal links with the small image?

    Sounds like an awsome idea, then we only have one out bound link. BUY!

    Thanks

    I'll do it asap.
     
    noppid, Apr 13, 2005 IP
  10. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #10
    That's done. I'll post it now as 1.02.

    Oops, not with images, but posted.
     
    noppid, Apr 13, 2005 IP
  11. mizt

    mizt Active Member

    Messages:
    772
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #11
    Works like a charm. Come on google!! Here Google!! (Just need google to start spidering me) Great Script
     
    mizt, Apr 13, 2005 IP
  12. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Hi,

    This looks great and I'm trying to get it working but the p3.php script seems to stall at:
    The little IE flag icon stops waving after a couple of minutes and nothing seems to happen. No records seem be put into the DB either. How long should this process take?
     
    mnemtsas, Apr 13, 2005 IP
  13. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #13
    If it don't time out in 30 seconds, it's working, wait about 6 minutes and the database will be populated.

    If it times out... see this.. http://us3.php.net/manual/en/function.set-time-limit.php and refer your host to it.
     
    noppid, Apr 13, 2005 IP
  14. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #14
    No I've had my hosting company increase my timeout to 15 minutes for an affiliate feed script that I wrote so that should be fine. I'll just be patient and do something else. I hope it works, I've got the templates modded already.....Anyway, it looks (potentially) great, thanks noppid!
     
    mnemtsas, Apr 13, 2005 IP
  15. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #15
    15 minutes seems time enough. The pull takes me about 4 to 6 minutes on a 3MB DSL and a pretty empty server. It never breaks about .20.

    Holler if ya get more info. Could it be a browser thing? I dunno, I'm fishing here.
     
    noppid, Apr 13, 2005 IP
  16. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #16
    OK, I left it a while and (finally) a few items ended up in the DB, but only 14 books were listed(when the limit was set to 2000). Weirdly none of the other echo's in the p3.php script are shown regardless of how long I wait, 'Be patient and just wait.' is the last thing I see. Looking at the script I should see :

    echo "Amazon SOAP query ended.<br>MySql update begin time: " . date( "l dS of F Y h:i:s A" ,time()) . "<br><br>";

    next, but I dont.

    Hummmmm. I'll try from another PC and another OS and see what that does.
     
    mnemtsas, Apr 13, 2005 IP
  17. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #17
    Thanks, keep us informed. It seems if PHP is in safe mode, you may not get the desired result.
     
    noppid, Apr 13, 2005 IP
  18. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Why would that be the case?
     
    mnemtsas, Apr 13, 2005 IP
  19. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #19
    From the php site regarding the php timeout...

    Warning

    set_time_limit() has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

    That is what allows us to do the big pull while we wait for the SOAP negotiation with amazon. It's really not needed to run the store.
     
    noppid, Apr 13, 2005 IP
  20. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #20
    OK, the amazon pull is causing the problems. I verified this by changing my search terms to something with a lot less results. Hey presto it worked. OK, well I'll try to run the p3.php script from another web server and see if I can do what I want that way. In the mean time I've got several hundred books in the DB now so I'm a happy little camper :D
     
    mnemtsas, Apr 13, 2005 IP