Barcode scanner for book site - php

I'm creating a social networking site for books (like Goodreads) and I'd like to include a feature whereby a user can scan the barcode of a book using the webcam and get information about that book.
The functionality for finding the information is already complete. I just need to know how to make the webcam read the ISBN and output it as a string, which I can then feed into my script which fetches the information. At the moment this is just done by filling in a form with the IBSN.
My website is built using PHP.
I can't seem to find a working solution online.
Any ideas of how I could go about implementing this?

Idea would be to use Flash barcode scanner. I've seen flash software that recognizes gestures and so on, so barcode shouldn't be that hard.
Here you can see it implemented: http://gurulib.wordpress.com/2007/12/28/a-flash-based-webcam-barcode-reader/

Related

How do 3rd Party Websites obtain in-game information /stats?

So I just finished making a sample model of Lol Name Checker within my local server. It checks the availability of a username for a game. Theres nothing mind blowing about it because all the information is available to the public on their website and even searching up their match history officially here. In a smart manner, the site compiles his own database based on the content he crawls through from other sites (I assume but this seems the case). What puzzles me is how other websites can obtain in-game data that is not available online (so they cant use php to crawl their web pages for text content). For example in this website. My question is how do they display data without having direct access to their sql database? Or is there an API I am missing for calling these functions that are available to developers (which I doubt)?

Flash Audio Recorder and Player on a website

I'm a newbie in website designing and I'm stuck with a problem. I want to accomplish the following and I don't know flash:
I want to create a webpage where I can record users voice using his microphone and then save it on the server.
Once it's done i would like to access the same recording and then play it on the browser.
I want a step by step approach.
Here are some tips:
Look into developing for Flash with some Flex variant.
Then start with an example like this.
Some good keywords to use in your Bing search are flex, flash, actionscript, or spark.

Linking to specific tracks through the iTunes affiliate program

My iPhone app links to songs on the iTunes store, through the linkshare affiliate program, up until this point I had been creating the links manually - which albeit is time consuming but I had no problem previously. The application has new songs every day and manually creating the links is getting out of hand. However, having read through all the affiliate program documentation I cannot find a way of linking to a specific track on the store - without using the link builder. The only data on the song I have is the track name, artist name and album name.
Obviously I can use the search api, but that does not seem to enable the affiliate linking - so I cannot benefit from the sales.
http://itunes.apple.com/search?term='.$tracksearch.'&country=gb&media=music&entity=musicTrack&attribute=musicTrackTerm&limit=1
So my question is how would I go about linking to a specific track, through the linkshare affiliate program according to the three pieces of data I have?
(I am using PHP for any basic data interactions - just in case anyone offers any coded methods - bearing in mind i'd like to produce the link on the server so my app can simply fetch the data from there.)
Obviously I can use the search api, but that does not seem to enable the affiliate linking - so I cannot benefit from the sales.
The Search API is exactly the tool you want to use. The API will return you the link you need, it is up to you to affiliate encode the link after you have that information.
The encoding process can be found in the documentation here:
http://www.apple.com/itunes/affiliates/resources/documentation/linking-to-the-itunes-music-store.html

html request to server from different devices

I am a beginner site developper, first post here. I am posting here because i find this subject particulary difficult to google..
So I was wondering if you surf to a website from 2 different devices, (eg. android / PC ), if a different HTML page is returned..
because sometimes you get like a "simplified" page on the smaller devices.
If so, how can i do this server side? Any handy links/tutorials i can follow? I would work with PHP and MySql.
I am asking this, because I want to develop a site using QR codes, so the biggest number of visitors will be from phones!
Tanks,
Mathias
Take a look at this PHP class.
It detects mobile devices:
http://code.google.com/p/php-mobile-detect/
There are also very simple solutions and tutorials like this one:
Detect mobile browser/user agent with PHP
Searching Google or StackOverflow will give you loads of examples!

How can I add webcam capabilities to my site?

I'm trying to allow users to take pictures with their webcams and save it. How can this be done? I am looking for something similar to Facebook or dailybooth in terms of their UI. I know smoe PHP/jQuery but I'm also wondering how I could save the pictures once "taken"?
The Facebook webcam thing is made using flash as you can see here:
This is all pretty easy to achieve with Flash (the actual capturing of what the webcam can see). I'm not sure how developers get from there to uploading the image to a server, though.
If you have knowledge in Flash / ActionScript 3, then this will get you started:
Camera.getCamera()

Categories