Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
A simple script who use <B>$HTTP_ACCEPT_LANGUAGE variable</B> for choice adequate to end-user language version of the web site
|
|
Takes a string of utf-8 encoded characters and converts it to a string of unicode entities.
Each unicode entitiy has the form &#nnnnn; or &#nnn; n={0..9} and can be displayed by utf-8 supporting browsers.
If the character passed maps as lower ascii it stays as such (a single char) instead of being presented as a unicode entity
|
|
This will convert Devnagiri(Hindi) ISCII string to Unicode(UTF8) encoded string.
|
|
negotiates a common *language* between apache and a browser
|
|
This code will convert number into Indonesian words.
|
|
DISPLAY THE SYSTEM DATE.
|
|
This will print a spelled out number in spanish. It can be easely modified for other languages that use special cases for numbering, such as german or french
This code will generate a coherent written amount in spanish, given any number between 0 and 999,999,999 can be easely modified for any languaje, as it handles special cases and descriptors in spanish (tough languaje)
|
|
UTF-8 encodes a string of Unicode entities .
Each Unicode entitiy should has either the form &[#]nn..n; n={0..9} (# denotes decimal, otherwise Hex) which is the W3C style or %nn with n=[0..F] Hex value. The value of the entity corresponds to its Unicode charcode. The entity can be displayed by UTF-8 supporting browsers. ASCII will not be modified.
Currently maps a 2^21bit space. The next version will be compliant with Unicode v3.x and cover a 2^31bit space (still, this should cover the existing 95,000~ Unicode entities).
|
|
RFC1738 compliant alternative to PHP's rawurldecode, which actually works with unicode entities (using utf-8 encoding).
Also included is a fix to the javascript method escape(), which ensures RFC1738 compliant encoding of strings containing utf-8 and/or ascii.
|