473,378 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Barcode implementation regarding php

Hi guys,

i am planning to create 1 barcode that will display in both PC and also mobile phone.i tried out using code-39 using php .but its not getting fit in mobile screen , the user need to scroll the mobile browser inorder to view the full barcode.

My client want me to create 1 barcode that will fit the mobile screen frame (up to max 10 character).i don't have much knowledge about barcode.can you suggest me the best barcode and most widely used barcode in US right now.

I also want to know whether i need to purchase a licence for that barcode.Its getting late from my side.i need to implement the barcode with in next 2 week.
i am looking ofr some help from you guys

A.suresh
Jul 30 '07 #1
3 1866
tscott
22
Hey,
You could make bar like images and assign each as a number gaining width as it goes bigger then when you input a number it will show the barcode by showing a differant image for each number.. this way you can make it fully customized... You could also decrease the size of your old script by finding where the image is create or included... personally I would do this... Then set the reader to select a number with the length of black.
[php]
<?php
$input = $_POST['input'];
$barcodes = array('0.jpg' , '1.jpg' , '2.jpg' , '3.jpg' , '4.jpg' , '5.jpg' , '6.jpg' , '7.jpg' , '8.jpg' , '9.jpg');
$input = str_split($input);
//then kick it into an array//
//okay now we need to echo each image variable corresponding with the number posted//
foreach($input as $current)
{
echo '<IMG SRC="' . $barcodes[$current] . '"></IMG>';
}
?>
[/php]

that's the easiest way to make a barcode that's variable I know... course you could go into the all the complicated stuff... I wouldn't though.
Note that you'll need php5 for this to work.
Jul 30 '07 #2
pbmods
5,821 Expert 4TB
Heya, A.suresh.

Are you using Image_Barcode?

Image_Barcode allows you to specify the dimensions of the resulting image.

As far as the license goes, as long as it is not a key component of the technology that you are trying to market, you should be OK.

In other words, if you use the barcodes as a method of convenience for the end User, you're OK. But if you were selling barcode generation software, you'd definitely want to talk royalties with the developer.
Jul 30 '07 #3
ak1dnar
1,584 Expert 1GB
Moved to php Forum from php articles section...
-ajaxrand
Jul 31 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Krishna Sagiraju | last post by:
Hai, I gotta decode a barcode from an image ( ppm, bmp, or jpg). I realize the first milestone would be to recognize a barcode with in the image: I took a small window (say 80X80 pixels) and if...
3
by: Tom Turner | last post by:
Here's the background on my situation. The question follows --- We have 600 units of mail going from our business to various Post Offices every morning. Every unit is accompanied by a paper...
1
by: Krishna Sagiraju | last post by:
Hai, I gotta decode a barcode from an image ( ppm, bmp, or jpg). I realize the first milestone would be to recognize a barcode with in the image: I took a small window (say 80X80 pixels) and if...
3
by: Murlan | last post by:
Hello everyone, I need help regarding a couple of issues. I have completed a cute and very functional database for a friend who owns a local gym -> mainly for tracking and managing clients etc....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.