Install the INTL extension with MacPort intalling php5-intl (sudo port install php5-intl), then copying the library to MAMP:
cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
Check the correct folder.
Maybe you will need to change the architecture of the MacPort compiler because MAMP is compiled in 32bit
# /opt/local/etc/macports/macports.conf
build_arch i386
Suppose you have to change some PHP settings for specific projects or directories. Well, you can do so using four useful Apache directives, directly in your Apache configuration files, or even in .htaccess files. To change the value of a boolean directive use the following Apache directive:
php_flag [directive_name] on|off
To set the value of a non-boolean directive you can use the following Apache directive:
php_value [directive_name] [value]
Last, you can also use the two following directives, which behaves like the previous two directives, respectively, with a small difference. When you set a value using these directives, you can’t override it in the .htaccess file. And obviously, you can’t use them in that file.
php_admin_flag [directive_name] on|off php_admin_value [directive_name] [value]
For example, if you want to alter the error reporting rules for a specific virtual host, just use something like this in the virtual host configuration:
php_flag display_errors on # Equal to "E_ALL | E_DEPRECATED" php_value error_reporting 30719
Finally, remember that you cannot use the various PHP constants. You must use the numerical codes in place of them. E.g. E_DEPRECATED is 8192. Note that you can’t add comments in the same line of the directive: put it before or after! Otherwise Apache will not start up!
For computing the value of the combination of two or more constants (like in the example above), you can use a PHP script like the following one:
<?php echo (E_ALL | E_DEPRECATED); # Prints 30719
Enjoy!
The script is very simple in use – just run php migrate.php myscript.php or php migrate.php directory/ and see if youll get any warnings. If you get none, the script thinks your code is ok Running php migrate.php -h displays help.I have placed the script on github – http://github.com/smalyshev/migrate
As specified from the RFC4627 the correct header is application/json and not text/json.
In PHP you can use:
header('Content-type: application/json');
If you need not cache the output, a common problem with GET requests on IE, you can use these lines of code:
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
MantisBT is a free popular web-based bugtracking system feature list. It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver. MantisBT has been installed on Windows, Linux, Mac OS, OS/2, and others. Almost any web browser should be able to function as a client. It is released under the terms of the GNU General Public License GPL.
via Mantis Bug Tracker.
Apache CouchDB is a free and open source document-oriented DBMS which can be queried through the standard REST operations (those of HTTP). Instead of relying on a set of tables with a fixed structure, it uses the documents as storage units. These documents are natively served as JSON key-value pairs, in a fully web style.
CouchDB is specialized for hadling very large databases which can be natively distributed and replicated over several servers. Its RESTful API allows to query the databases from all languages, and even from a simple web browser, or a command line. This tutorial from IBM explains how to query CouchDB from PHP, employing a object-oriented wrapper.
This module provides an easy-to-use interface to allow you to run multiple CURL url fetches in parallel in PHP
via [ParallelCurl]
LangRef.org is a repository of some standard programming situations you might encounter and their solutions in a variety of languages.
Via LangRef.org
For everyone who don’t believe that PHP could be an enterprise solution I only have a small quote:
Facebook, WordPress.com, Digg, Wikipedia, Flickr — all dynamic PHP + MySQL.