News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Bringing Unicode to PHP with Portable UTF-8
September 10, 2013 @ 11:19:05

On the SitePoint PHP blog there's a new tutorial showing you how to bring portable UT-8 support to PHP with the Portable-UTF8 library. UTF-8 handling has long been one thing desired in the core of PHP, but hasn't been introduced quite yet.

PHP's lack of Unicode/multibyte support means that the standard string handling functions treat strings as a sequence of single-byte characters. In fact, the official manual defines a string in PHP as a "series of characters, where a character is the same as a byte." PHP supports only 8-bit characters, while Unicode (and many other character sets) may require more than one byte to represent a character. This limitation of PHP affects almost all aspects of string manipulation, including (but not limited to) substring extraction, determining string lengths, string splitting, shuffling etc.

The article mentions some of the efforts in the past that have been made to try to introduce this functionality into the core, but was shelved at the time. Instead of waiting on this feature to be introduced, they show you how to use the library to do things like check for UTF-8 strings, "cleaning" the UTF-8 strings and do some validation on the string's contents.

0 comments voice your opinion now!
unicode portable utf8 library tutorial

Link: http://www.sitepoint.com/bringing-unicode-to-php-with-portable-utf8/

Andreas Gohr's Blog:
Compiling a Portable Apache for Linux
April 01, 2008 @ 11:32:57

Andreas Gohr has posted a guide for creating a mobile Apache installation that could run on something like a USB stick.

Today I spent some time to figure out how to compile a relocatable Apache with PHP support. Yes, this might result in a Linux version of the DokuWiki on a Stick project. Read on for detailed instructions.

The installation is pretty similar to the normal compile with a few small differences. Check out the post for the complete process, commands and all.

0 comments voice your opinion now!
portable apache usb stick linux dokuwiki


LoopPo Blog:
PDML PHP tricks
March 01, 2007 @ 10:48:00

A new post on the LooPo blog points out a handy PHP library to make and work with PDF files in PHP - Portable Document Markup Language (PDML).

I was curious how this works, as it seemed pretty different from previous similar libraries (PDFLib, FPDF), that offered a programmatic API to generate PDF DOMs instead of a markup language.

They describe how it works, what's included with the download and how it uses output buffering to get the job done as well as a few updates and further tips on its usage.

2 comments voice your opinion now!
pdml tricks portable document markup language pdf output buffering pdml tricks portable document markup language pdf output buffering


Community News:
PortableWebAp.com
December 29, 2005 @ 10:23:35

Via a link from del.icio.us today, the PortableWebAp project has come to my attention.

PortableWebAp is a portable platform for web applications. With it you can run php web applications from a CDROM, DVD, USB Drive, from any directory from any hard drive. No installation is necessary.

It'll only run on Windows 98 or higher machines, but it has everything you need right there in one, handy package. It (currently) comes installed with PHP 5.1, SQLite 3.x, PDO, and the PHP command-line version - all in about 5MB. Once it's running, it can drop down to the system tray for a less intrusive execution. And, by default, it runs on port 800 so as not to interfere with anything already working on the standard port 80. And, of course, it's pretty cheap - a small price for a lot of time saved.

You can check out the project here...

4 comments voice your opinion now!
portable web server database usb cd dvd portablewebap portable web server database usb cd dvd portablewebap



Community Events





Don't see your event here?
Let us know!


wordpress install refactor release series interview unittest threedevsandamaybe developer testing api laravel introduction community opinion list framework podcast language code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework