[PHP] Zend Server, PEAR, and PHAR error

Some time ago I was trying to install PEAR with default installation of Zend Server. To do that, you have to run a following command:

C:\Program Files (x86)\Zend\ZendServer\bin\go-pear.bat

That resulted in a problem with PHAR archive:

phar "C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\go-pear.phar" does not have a signature
PHP Warning:  require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\go-pear.phar on line 1236

To solve that problem, you have to either modify php.ini file, adding following directive:

phar.require_hash=0

Or, you can use it one-time only, setting that configuration option in command line:

C:\Program Files (x86)\Zend\ZendServer\bin\PEAR> php -d phar.require_hash=0 go-pear.phar

The latter form is preferred, as disabling checking signatures is considered a security flaw.

Operating system on a memory card

MicroSD cardWindows XP on a netbook works fine with me, but as a person with Linux background it seemed natural to try some distribution on my Wind. As I wanted to try it first, I’ve decided to user some live distribution first. I don’t have an external CD device, but on a previous occasion I’ve managed to cope with bootable USB drives, so it was a natural (and only) choice. I was just about to re-format pendrive I’ve used to boot Linux from, but then I remembered that I have couple of loose 2GB microSD cards I’ve bought just because they were cheap, and an USB card reader. Idea of having an operating system on a so tiny memory card was very appealing!
Continue reading Operating system on a memory card