In phpclasses.org interesting is a recent article on neural networks, movements, PHP has been published.
An example of this article can be found here . The corresponding library is at neuralmesh downloaded are.
Neural networks in PHP
HipHop for PHP - Facebook develops software to speed up PHP
A blog entry on Facebook Developers of Facebook, according Haiping Zhao has developed a software to speed up PHP development.
The software, known as hip-hop transformed PHP source code in C + + . The thus newly created source code can then be a C + + compiler in highly optimized machine code converted and executed. HipHop contains a module for the transformation of the source code a new implementation of the PHP runtime. Furthermore, the main PHP extensions written by new and can also be used with hip-hop.
The advantages are obvious. PHP is easy to learn and C + + very quickly. With this approach might be better in future server and are used less resource intensive. The software is intended as open source project at github be published. I found it there but not yet
.
Related articles by Zemanta
- HipHop for PHP: Move Fast (downes.ca)
- Facebook looks to speed up PHP (infoworld.com)
- Facebook rewrites PHP runtime (Ahandy / Software Development Times Blog) (techmeme.com)
Templating engines in PHP
Which templating engine is the best in the PHP environment? A serious question to which I knew so far also not such a right answer. So far I'm using Smarty gone quite well.
However Smarty also has its shortcomings, for example, relates to the performance.
Naturally there is always the possibility to completely abandon a Templating Engine and PHP easy to use plain. Rasmus Lerdorf this describes in his famous article
The-no-framework PHP MVC framework " .
Fabien Potencies, the lead developer of the symfony framework has templating engines in PHP
exactly wrote the article I have long sought.
He compares the following Engines
- Twig
- PHPTAL
- Dwoo
- Smarty 2
- Smarty 3
- Calypso
- eZ Templates
and comes to the conclusion that Twig of all tested best cuts. Well, maybe there probably a little self-promotion with him is a game?
Sphinx as a PHP module embed
Sphinx to generate a PHP module is important to be able to access the Sphinx API via PHP methods.
How to use:
tar-xzvf sphinx-0.9.8.1.tar.gz
sphinx-0.9.8.1/api/libsphinxclient cd /
. / Configure & & make install
PECL can then be used to build the PHP module:
pecl install sphinx-beta
In version 0.9.9 there was at least to me an error when compiling.
In Sphinx-Forum , there are a tip to:
Here are the commands I used to install and before this I libsphinxclient successful
installed sphinx:
cd / path / to / sphinx / src / api / libsphinxclient /
sudo sh / path / to / sphinx / src / api / libsphinxclient / .buildconf.sh
sudo. / configure
sudo make
sudo make install
But when I used "sudo make" I got this error:
sphinxclient.c: 1216: error: static declaration of 'sock_close' follows non-static
declaration
sphinxclient.c: 280:: note previous declaration of 'sock_close here' what
So I checked the file.
On line: 280
void sock_close (int sock);
On line: 1216
static void sock_close (int sock) ( # If _WIN32 closesocket (sock); # Else close (sock); # Endif )
I changed the line 280 to:
static void sock_close (int sock);
This has eliminated the problem with me. Now you simply have for the module creation with PECL under etc/php5/apache2/php.ini
The following entries are inserted:
[Sphinx]
extension = sphinx.so
That's all. After restarting the Apache server can now be used with PHP API for Sphinx.
phpinfo () should have after installing this entry:
sphinx
Sphinx support enabled
Version 1.0.3
Revision $ Revision: $ 292,826
Who PHP API also Sphinxs (ie the Sphinx engine for MySQL) would use the next, which is this article placed to the heart.
If Compiling Sphinx in Ubuntu 9.10 (Karmic) the following error message appears:
"Check that you do not have MySQL installed include files. The package name is typically 'mysql-devel' "
The following should solve the problem:
apt-get install libmysql + +-dev
Under sorgalla.com also describes how Sphinxs Zend Framework can be integrated with the. Nice thing!

Articles and books about PHP-MySQL Performance
A small linklist with tips to improve the performance of LAMPP-XAMPP-based systems. The focus is on PHP and MySQL optimization. I am going to extend the article step by step.
- The PHP performance tips at google code. Simple and effective.
- Mysql Tuner is a powerful perl script providing recommendations and auto-optimization at the level of a MySQL DBA.
- The Let's make the web faster main site, so by google code
- Many good articles can be found at www.mysqlperformanceblog.com
- Powerful Principles to Speed Up MySQL Queries
- How to Speed Up MySQL - SELECT Before You JOIN
- Useful Tips To Speed Up Your MySQL Queries
- The following book is an in-depth resource: High Performance MySQL: Optimization, Backups, Replication, and Load-Balancing
- Turn on MySQL query cache to speed up query performance?
- 32 Tips To Speed Up Your MySQL Queries
- MySQL Performance Tuning Tuning-Primer.sh Script
- Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
- Getting started with memcache
- A lot of good articles about memcache
- Rasmus Lerdorf PHP: Frameworks? Think Again.
Two Semantic Web with PHP tutorials at IBM Developer Works
There are two Semantic Web tutorials to be found at IBM Developer Works:
Implement Semantic Web standards in your Web site
http://www.ibm.com/developerworks/edu/x-dw-x-semanticweb.html?S_TACT=105AGX44&S_CMP=EDU
Building Semantic Web CRUD operations using PHP
http://www.ibm.com/developerworks/opensource/library/os-php-crud/index.html?S_TACT=105AGX44&S_CMP=EDU
![HipHop for PHP Facebook develops software to speed up PHP Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=7ec17ff0-3395-407e-b0e6-dfaef4cdd34f)












