Code

PHP and MySql: getting ready for multi language applications with utf8

PHP
Thursday, 08 December 2011

This explains how to write PHP applications ready for international use.

Utf-8 is a wide-used and well-suported character encoding which allows for special characters, like accented characters, characters with umlauts, cedillas and so on.

Here's a few steps to follow to ensure your data gets correctly stored in utf8 encoding:

place this at the very top of your 'entry' PHP script or your config PHP script(to make sure the code gets executed site-wide):

<?php //set INTL encoding for PHP sources and regexp
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");

 

When outputting html, make sure you set document encoding by specifying a HTTP header with PHP

<?php header('Content-Type: text/html; charset=UTF-8');

or a meta tag in your HTML <head> 'section':

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Be first to comment this article

Last Updated ( Thursday, 08 December 2011 )
Read more...
 

Upgrading OpenBravo POS software

Misc
Tuesday, 15 November 2011

An introduction to OpenBravo POS software and Unicenta OPOS

OpenBravo is a point of sales (POS) software. It can be successfully used as a restaurant software, for keeping track of tables, orders and customers. It can be handled  very well with a touchscreen or a mouse.

It can be configured for for multiple devices such as magnetic stripe reader(for quick cashier/operator login), POS ticket printers, ticket display screens and cash drawers.

It prints order tickets, it generates statistical reports on sales by product, by cashier, by date range, and it manages product stock.

 OpenBravo POS may be installed on several computers while sharing the same product and sales data.

 OpenBravo POS system is free software, licensed under the GPL, so you may use it and modify it freely.

 It is based on Java, so you can use it on any Mac, Linux and Windows PC.

 Unicenta OPOS , the succesor of OpenBravo POS, is an improved version of Openbravo. It features many bugfixes and enhancements, such as a clean and more intuitive interface, the ability to print food products from orders separately as kitchen tickets(when used as restaurant POS).

 

Be first to comment this article

Last Updated ( Tuesday, 15 November 2011 )
Read more...
 

Installing Debian, Ubuntu or LMDE (Linux Mint Debian Edition) from HDD

Linux
Tuesday, 18 January 2011

First of all, you may ask yourself why would you want to do this. I did it because I did not want to waste a blank CD.

This Mint installation was performed using a Live Linux booted with PXE( I used plop linux , which is a lightweight Linux distribution.

Be first to comment this article

Last Updated ( Friday, 21 January 2011 )
Read more...
 

Canon multifunction printer: getting the printer drivers and scanner to work in debian/ubuntu/mint

Linux
Thursday, 07 October 2010

I just installed a Canon multifunction printer(MP210) in Linux Mint (based on debian squeeze/sid, i.e 'debian testing' at this time) Here's how I got the printing and scanning to work.

Be first to comment this article

Last Updated ( Thursday, 07 October 2010 )
Read more...
 

Authentication without password with SSH and rsync

Misc
Thursday, 12 August 2010

There are a lot of articles on this issue. I'm writing this as a note to self, as I often tend to forget how to setup SSH authentication without password upon reinstalling the OS or changing SSH keys.

 

 

Be first to comment this article

Last Updated ( Sunday, 15 August 2010 )
Read more...
 

Mysql: host not allowed to connect

Misc
Saturday, 17 April 2010

The issue I was encountering was that MySQL 5.1.3 on Ubuntu 9.10 was not allowing external connections, i.e. connections from a host different from the host the server is running on.

Comments (4)

Last Updated ( Saturday, 17 April 2010 )
Read more...
 

XP firewall: how to repair

Misc
Sunday, 25 October 2009

This article details a few steps you can take to repair your windows firewall and ICS(Internet connection sharing)

I had recently stumbled upon a problem with my XP machine, while trying to access advanced properties of a LAN(Local Area  Connection) network connection

Windows XP reported a problem when I attempted to access Local Area Connection 1->Properties->Advanced

Comments (5)

Last Updated ( Monday, 26 October 2009 )
Read more...
 

Pidgin not connecting? change pager host

Misc
Friday, 19 June 2009
Here's how to fix Pidgin instant messenger if you experience Yahoo account connection problems.

Comments (12)

Last Updated ( Tuesday, 23 June 2009 )
Read more...
 

Using Joomla 1.5 to cache expensive computations

Joomla 1.5
Monday, 01 June 2009
Sometimes you need to preserve some computation results for a while, and have it refresh automatically. You may use this technique for periodic RSS fetching, or a really heavy SQL query. There are many more applications, of course.

Be first to comment this article

Last Updated ( Thursday, 18 June 2009 )
Read more...
 

Connecting to Joomla 1.5 from an external PHP script

Joomla 1.5
Monday, 01 June 2009

Sometimes you need to access Joomla libraries and/or data from an outside script. You may need to sync users with a 3PD application, or maybe you're developing a fresh application, but you're used to Joomla style  JTable database manipulation, and JRequest input filtering.

Comments (2)

Last Updated ( Thursday, 18 June 2009 )
Read more...
 

Europe freelancer directory

Newsletter

Subscribe to TeachMeJoomla's newsletter
Name:
Email:


Auto tags

remove Powered by Phoca gallery

kitchen order ticket format

powered by openbravo

phoca powered by entfernen

how to remove phoca gallery powered by

phocagallery remove

remove phoca

phocagallery remove powered by

unicenta

remove phoca gallery powered

phoca watermark

how to remove powered by phoca

powered by phoca gallery entfernen

phoca gallery remove

"powered by phoca gallery" + remove

enlever Powered by Phoca Gallery

phoca gallery 2.7.3 remove powered by

how to remove powered by phoca gallery in joomla

phocagallery 2.7.5 remover

Supprimer Powered by Phoca Gallery

background is not changing color in Phocagallery

joomla redirect code