Contents tagged with PHP
-
Microsoft PHP driver for SQL Server 2.0 released
The SQL Server team just announced the release of their latest PHP driver for SQL Server. Details about the release can be found at http://blogs.msdn.com/b/sqlphp/archive/2010/08/04/microsoft-drivers-for-php-for-sql-server-2-0-released.aspx.
-
PHP 5.3 and MySQL connectivity problem
I have seen so many post in our IIS forum mentioning that after moving to PHP5.3 they are not able to connect to MySQL database. So this means a simple program like the one below doesn’t work:
-
Sugar and Mediawiki added support for WINCACHE user cache
The support for WINCACHE has been added into Sugar Community Edition 6.0 Beta bits. The latest bits which supports WINCACHE out of the box can be downloaded from http://www.sugarforge.org/frs/?group_id=6. Remember Sugar 6.0 bits available there are still in Beta. However it is so good to know that we have WINCACHE support right out of the box in Sugar. A big thanks to Sugar developers. Sugar also released an add-on package for WINCACHE user cache for prior version of Sugar (version 5.2 and version 5.5). John blogged about it at http://developers.sugarcrm.com/wordpress/2010/05/15/wincache-support-for-sugar/.
-
Readers-Writers Problem and WINCACHE
This is a very common problem which most of us has studied in our academic days. This we learn as part of process synchronization or concurrency. For the sake of this discussion let’s assume we have multiple process accessing common data in a shared memory (ideally a common shared resource is available). While some processes will read from the shared memory, all others may write to it. While we can allow multiple readers to read from shared memory as it does not harm, there can be no time where more than one writer can have access to shared memory or a writer as well as a reader can have access to shared memory simultaneously.
-
File Change Notification support on WinCache 1.1 Beta2
As you all know we did a Beta2 release of WINCACHE 1.1 today. This is a very important release with lots of bug fixes and new features. I would encourage all current users of WINCACHE to upgrade to latest Beta2 build.
-
Performance improvements in Drupal with WINCACHE user cache
Now that WINCACHE 1.1 Beta is released and it has support for user cache, you can enhance Drupal’s performance by integrating WINCACHE user cache. For this you will need to have two things already setup:
-
Performance improvement in Joomla with WINCACHE user cache to cache session
Now that we have WINCACHE 1.1 Beta release which supports user as well as session cache, I am going to tell you a way to integrate session cache with Joomla using WINCACHE. Joomla has the way of integrating session cache based on user cache implementation and that’s what I am going to explain today. Increasing performance of Joomla by enabling it’s user cache functionality using WINCACHE is explained here.
-
Performance improvement in Joomla using WINCACHE user cache
Now that we have WINCACHE 1.1 Beta released which has got implementation for both user and session cache, one can easily take advantage of WINCACHE user cache and increase performance of Joomla. In this post I am going to tell you steps to use WINCACHE user cache with Joomla.
-
Troubleshoot – My PHP script is timing out
I hear a lot about the problem where web server (IIS) throws an error saying that PHP script has timed out in our forums. Let’s try to understand the reason behind this. I will be using a Windows 7 Enterprise machine (having IIS 7.5) to explain this but this should be applicable to Windows 2008/Windows Vista too. The same can be told true for Windows 2003/Windows XP with some difference like IIS stores FastCGI configuration in fcgiext.ini file rather than application meta-base. However the concept should be exactly similar.
-
WINCACHE test code committed to PECL, paves a way to test PHP CGI
Few days back I made some code commit (code check-in) to WINCACHE SVN depot on PECL. I committed the test infrastructure to test WINCACHE. The entire test code can be see inside the folder at http://svn.php.net/viewvc/pecl/wincache/trunk/tests/. Let me explain how it works. In order to make it work first of all the binaries has to be compiled. This is the binary which is responsible for driving the test suite, I call it as a kind of test driver. I have already committed the the Visual Studio solution file which is at location http://svn.php.net/viewvc/pecl/wincache/trunk/tests/driver/test_wincache.sln?view=log. However the solution file is meant for Visual Studio 2008 and may not be compatible with previous versions of Visual Studio. If you are using an old version of Visual Studio you may need to create a new solution/project file (simply chose ‘WIN32 Console Application’ while creating the solution/project file). After creating a new solution just add the C++ source/header files present at http://svn.php.net/viewvc/pecl/wincache/trunk/tests/driver/test_wincache/ to the solution/project. Compile it in Visual Studio and the binaries should be made. This builds one executable which is named ‘test_wincache.exe’. You can either compile Release/Debug build but I always prefer Release build. Here is how you can use the binaries to test WINCACHE.