Menu

Send readed data to php? pls help

Help
norbre
2013-09-27
2015-07-28
  • norbre

    norbre - 2013-09-27

    Hi,
    ZBar succesfully write the readed codes into a specified txt file (I use this method under windows command line: "zbarcam \dev\video1 >out.txt").
    ... but I'd like to send the data directly to a php (ex.:http://www.foo.com/process.php).
    Can I do that somehow? (ex.: zbarcam \dev\video1 >http://www.foo.com/process.php?code=)

    thank you

     
  • norbre

    norbre - 2013-10-02

    nobody?

     
  • lloydmedley

    lloydmedley - 2014-06-04

    I'm looking to do the exact same thing. Looks like no one has a proper answer. Just been playing around and this batch script seems to sort of work though..

    cd C:\Program Files (x86)\ZBar\bin>
    zbarimg -d C:\Users\User\Desktop\image.png > C:\Users\User\Desktop\1.txt
    set /p VAR1=<C:\Users\User\Desktop\1.txt
    start http://domain.co.uk/page.php?var=%var1%
    del C:\Users\User\Desktop\1.txt

    Now just need to get it to work with the webcam (I'm trying to verify ticket numbers)

     
  • Leandro Felizari

    You can use the exec command.
    barcode=exec('zbarimg image_file_link.jpg');
    print barcode.
    If you only need the barcode, use '--raw' and '-q' modifiers.

     

    Last edit: Leandro Felizari 2015-07-28

Log in to post a comment.