Home » Want dynamically generated, keyword-relevant images on your site?

Want dynamically generated, keyword-relevant images on your site?

This is a very cool free script that will go to Google Images and grab pictures that it thinks are related to your keywords, and insert them in your sites. Now, where might one put pictures like that, say, perhaps… NEXT TO YOUR ADSENSE ADS?? Nahhh… that might actually increase CTR and income! 😀

Anyway, it’s a cool script. Takes a little tweaking to get it running on every host, and the author will not likely offer a lot of support, but hey it’s free. Also it seems to have trouble right now with dynamically generated sites (since the meta keywords don’t exist at the time the script gets called) but I’m working with some folks to solve that. So…

Go grab this script. You know you needed another toy.

Name of author

Name: macroking

3 thoughts on “Want dynamically generated, keyword-relevant images on your site?

  • Hey pml. Nice site you have here. I have a question about picsensor. You’re right – the author wants to have nothing to do with offering any help or support so…

    I wondered if you could share how you tweaked it to work, because I couldn’t get it to no matter what.

    ok…here goes my detailed questions…

    Okay, first I created a folder in my ‘public_html’ folder called ‘sensor’ and uploaded install.php & sense.php, and CHMOD’ed the folder to 777. I then opened up install php in the browser.
    1) Problem; I got the following error: “You need to CHMOD “sense’ to 777”. (Note; instructions only say to CHMOD the folder to 777) when I CHMOD ‘sense’ to 777, it installs, giving me this message:
    2) Installation Complete. On your AdSense pages place this code above ads to include your images: Change the “728x90_as” to whatever sized Google ad you are running. Make sure your pages have relevant meta keyword tags, without those no images will appear. Many of your pages might be slow for a while, especially if you have a lot of meta tag keywords. Don’t worry, after a couple of pageloads all the graphics will be stored on your server and will load instantly.
    3) Problem; I add the code to my page (index.php in wordpress) and when I load the page, I get:
    Fatal error: Call to undefined function: sense() in /home/surveyse/public_html/wp-content/themes/default/index.php on line 35
    4) He said to add the .htaccess text file & upload it. Question1: should this be added to the same folder as where you have “install.php & sense.php?
    Question 2: Since the text to be added to .htaccess didnt show up upon installation, what exactly should be on included in the .htaccess text file? Thats it for now. If you can clarify these I believe I can install the file hopefully. Thanks.

  • You’ve got a great resource going here. Keep up the good work!

    Any progress on getting this to work on dynamic pages?

  • macroking Post author

    Hi Dhira,

    Yes PicSensor takes a little experimenting to get it to work. You were right to CHMOD sense.php to 777, I thought I saw that in the instructions personally. Maybe I just figured it out on my own, I don’t remember. Anyway yes, it needs to be 777 as well as the folder containing it.

    The code I put on my htaccess file is as follows:

    php_value auto_prepend_file “/home/username/public_html/includes/sense.php”

    I put my sense.php inside a folder called “includes”. If this was on a subdomain, it would be as follows:

    php_value auto_prepend_file “/home/username/public_html/subdomain/includes/sense.php”

    For my sites, I do this on the primary htaccess file that is in the root of the site, though I suppose you could put it in a sub-folder where you have the actual pages stored. I haven’t tried that.

    As for working with Dynamic pages, no luck yet Kevin. There is a programmer looking at it now, but I have not heard a progress report yet. I am hopeful that it will not be too terribly complicated, but I just don’t know yet. Rest assured that I will post here as soon as I do hear! 🙂

    Thanks for writing gang…


Leave a Reply

Your email address will not be published. Required fields are marked *