CentOS comes with Apache v.2.2.3 and PHP v.5.1.6 and they are easily installed via the default CentOS Package Manager ‘yum’. The advantage of using yum (as opposed to installing via source code) is that you will get any security updates (if and when distributed) and dependencies are automatically taken care of. Apache Install A basic … Continue reading
NOW! Professional Reporting can embeding in PHP source, that report will be helping Reporting data from Mysql and handle paper size dan page number. iReport will helping design and setting print data. A. AppServer AppServ 2.5.10 Apache 2.2.8 PHP 5.2.6 MySQL 5.0.51b phpMyAdmin-2.10.3 Download Sourceforge.net : http://prdownloads.sourceforge.net/appserv/appserv-win32-2.5.10.exe?download MD5SUM : 279c0c39866fbecb8a3904969fd5d0f4 B. iReport Download from http://sourceforge.net/projects/ireport/files/iReport%20(classic)/ (test using iReport 0.5.0 … Continue reading
A. CLASS <?php class Item { protected $name, $price, $qty, $total; public function __construct($iName, $iPrice, $iQty) { $this->name = $iName; $this->price = $iPrice; $this->qty = $iQty; $this->calculate(); } protected function calculate() { $this->price = number_format($this->price, 2); $this->total = number_format(($this->price * $this->qty), 2); } public function __toString() { return “You ordered ($this->qty) ‘$this->name'” . ($this->qty == … Continue reading
Hiiiii dear all, i will present easy sample barcode with phpcode, and you can download this example by zip file. <?php require_once (‘core.php’); $start = 1; $max = 150; $sn = 501; $imei =1; for($i=$start;$i<=$max;$i++){ $imei_string = ”; $sn_string = ”; $imei_string = “35566103012”.sprintf(‘%03d’, $imei); $sn_string = “DM-V110015”.sprintf(‘%03d’, $sn); $p_bcType=1; $p_textEnc=rawurlencode($imei_string); $p_xDim=1; $p_w2n=2; $p_charGap=1; $p_invert=’N’; … Continue reading