background preloader

PHP

Facebook Twitter

Php-parallel-programming - Run synchronous or asynchronous scripts in parallel mode. While working on PHP, on many occassions I come up with requirement where I need to run some processes in parallel.

php-parallel-programming - Run synchronous or asynchronous scripts in parallel mode

But there wasnt any easier way to do parallel processing in PHP. In PHP, we could use fork using pcntl_fork() function but in unix variant platforms when PHP is not running as Apache module. Moreover this is not available on Windows platform. There is a simpler way too, we can fake the forking by using the exec function and redirect STDOUT and STDERR to /dev/null and run the process in the background. But in this scenario, we cant catch the script output and dont have control on script flow. Features: Synchronous/asynchronous script execution Control parallel PHP script executions and get the outputs from the scripts Argument passing to the PHP scripts Get output in HTML/PHP object from You can connect to me on Code assistance synchronous forking. Welcome to the PHP Classes Repository.

PEAR

Generation 5 » require(), require_once() and Dynamic Autoloading in PHP. Introduction I program in PHP a lot, but I’ve avoided using autoloaders, except when I’ve been working in frameworks, such as symfony, that include an autoloader.

Generation 5 » require(), require_once() and Dynamic Autoloading in PHP

Last month I started working on a system that’s designed to be part of a software product line: many scripts, for instance, are going to need to deserialize objects that didn’t exist when the script was written: autoloading went from a convenience to a necessity. The majority of autoloaders use a fixed mapping between class names and PHP file names. Although that’s fine if you obey a strict “one class, one file” policy, that’s a policy that I don’t follow 100% of the time. Zend Framework. Zend Framework (ZF) is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.[3] Licensing[edit] Zend Framework is licensed under the Open Source Initiative (OSI)-approved New BSD License, and all code contributors must sign a Contributor License Agreement (CLA) based on the Apache Software Foundation’s CLA.

Zend Framework

The licensing and contribution policies were established to prevent intellectual property issues for commercial ZF users, according to Zend's Andi Gutmans.[4] PEAR Packages.

Php-install

Writing powerful and easy config files with PHP-arrays - DASPRiD's v9.3. Friday, May 8, 2009 I was asked many times how I organize my config files, and my response was always the same, until some time ago when I switched began refactoring the codebase of my blog.

Writing powerful and easy config files with PHP-arrays - DASPRiD's v9.3

jQuery PHP library.

Favorite

PhpQuery « phoenixheart – portfolio & more. It’s been quite a while I don’t have any update on this blog (sorry my *ten* RSS subscribers…).

phpQuery « phoenixheart – portfolio & more

If there is any excuse, then it should be the fact that I’ve just left Gameloft to join a start up, and you know it, the work load is just a bit heavier than what I expected. To make my life somewhat more difficult, one day I realized that the current theme of this blog was just too messy and not so flexible, so I decided to redesign it somehow. Well, the new theme is under development now, and all I can promise is it will be much easier for the eye. Ok cut the chit-chat, today I have this new thing to share. Here is one line of the oh-so-familiar code: <code>$("div.old").replaceWith($("div.new").clone()).appendTo(".trash").prepend("Deleted");</code> If you got no idea what the line means, then let us be honest to each other: How long have you been under the rock?

Now, once you know what it is and what it does, take a look at this: Spin Text For SEO - A PHP Spinner.

OOP

For Windows: Binaries and sources Releases. Which version do I choose?

For Windows: Binaries and sources Releases

If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP. Apache Please use the Apache builds provided by Apache Lounge. They provide VC9, VC11 and VC14 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs. If you are using PHP as module with Apache builds from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler.

With Apache you have to use the Thread Safe (TS) versions of PHP. More recent versions of PHP are built with VC11, VC14 or VC15 (Visual Studio 2008, 2012 or 2015 compiler respectively) and include improvements in performance and stability. - The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed - The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed TS and NTS TS refers to multithread capable builds.

Pecl

PHP Generic Access Control Lists.