Report PHP
Report PHP
Year:2023-24
Roll
Sr.No. Name of Group members Enrollment no. no.
4. Group members
Roll
Sr.No. Name of Group members Enrollment no. no.
Activity Name of
Details of activity Activity start complete Responsible
Date date member
Dhole
Report 1-10-23 20-10-23 Rameshwar
1 Internet Google 1
1.0 Rationale:
• The rationale behind choosing PHP for barcode generation lies in
its widespread usage for web development and its capability to
handle dynamic content generation efficiently. PHP provides
libraries and functions for image manipulation, making it suitable
for implementing barcode generation algorithms.
• Providing a tool for generating barcodes on the fly, which can be useful in
various applications such as inventory management, retail, ticketing systems,
etc.
• Enhancing knowledge and understanding of PHP programming language.
• Developing skills in handling dynamic image generation and manipulation.
• Understanding the principles of barcode generation and its practical
implementation using PHP.
Roll
Sr.No. Name of Group members Enrollment no. no.
Code used: -
<?php
?>
<style>
div.b128{
height: 30px;
</style>
<?php
global $char128asc,$char128charWidth;
$char128asc=' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS
TUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~';
$char128wid = array(
'212222','222122','222221','121223','121322','131222','122213','122312','132212','22
1213', // 0-9
'221312','231212','112232','122132','122231','113222','123122','123221','223211','22
1132', // 10-19
'221231','213212','223112','312131','311222','321122','321221','312212','322112','32
2211', // 20-29
'212123','212321','232121','111323','131123','131321','112313','132113','132311','21
1313', // 30-39
'231113','231311','112133','112331','132131','113123','113321','133121','313121','21
1331', // 40-49
'231131','213113','213311','213131','311123','311321','331121','312113','312311','33
2111', // 50-59
'314111','221411','431111','111224','111422','121124','121421','141122','141221','112
214', // 60-69
'112412','122114','122411','142112','142211','241211','221114','413111','241112','13
4111', // 70-79
'111242','121142','121241','114212','124112','124211','411212','421112','421211','21
2141', // 80-89
'214121','412121','111143','111341','131141','114113','114311','411113','411311','113
141', // 90-99
'114131','311141','411131','211412','211214','211232','23311120' ); // 100-106
////Define Function
global $char128asc,$char128wid;
$onChar=1;
$w.= $char128wid[$pos];
?>
<html>
<head>
<style>
</style>
@page
</style>
</head>
<body onload="window.print();">
<?php
include 'barcode128.php';
$product = $_POST['product'];
$rate = $_POST['rate'];
for($i=1;$i<=$_POST['print_qty'];$i++){
?>
</div>
</body>
</html>
Output: -