Browse by Tags
All Tags »
PHP (
RSS)
PHP.NET web site is known for its well written and very detailed documentation. The excellent content together with tons of user contributed notes has made the PHP.NET the primary place for getting the help on all PHP related questions. However there was one thing in the PHP docs that was still not up-to-date. The Windows and IIS-specific installation and configuration sections did not cover the latest changes in Windows, such as IIS 7 and FastCGI. Now I am glad to let everyone know that this part...( read more ) Read More...
With WINCACHE 1.0 RC one can configure parts of WINCACHE solution on a per site basis. As you know WINCACHE has two kinds of cache namely output code cache and file cache. With RC release, you have the ability to turn output code cache on a per site basis. We have got a new WINCACHE directive named WINCACHE.OCENABLEDFILTER which can be used to enable/disable output code cache on a per site basis. This INI directive can take a string which is list of comma separated numbers. Each number in the string represents a valid site id which is a unique identity IIS gives to each Web Site when the site gets created. All the site id included as part of this string will actually toggle the value of WINCACHE.ocenabled while running WINCACHE functionality. Example, if you have below in your PHP INI file: wincache.ocenabled=1 wincache.ocenabledfilter="2,3" This means for site having id 2 or 3, WINCACHE output code cache will be disabled and for all other site id, it will be enabled. So...
I will be talking about some new features we have coded in WINCACHE RC release . We have introduced new API and changes/additions to the WINCACHE INI directives. I am going to explain two new improvements we have done over Beta release which will dictate how WINCACHE is going to cache the file. We have exposed a new function wincache_refresh_if_changed(). This API forces WINCACHE to check for the file change for the files mentioned in the parameter next time the file gets loaded. So this effectively means bypassing the wincache.chkinterval value.The parameter takes the below values: A simple string which is a way to pass one single file name An array of strings where one can specify an array of file names NULL meaning every single file One important thing to note here is that this API just forces WINCACHE to check for a file change on every request of loading the file. This will not remove the file from the cache unless the file has actually changed. So if there are files in your application...
We did the Release Candidate (RC) release of WINCACHE today. For details look here . It is exciting to see this out as this gives more flexibility in running the software in production environment. One of the enhancement we have done in this release is to provide a brand new statistics page on popular demand. Lot of people asked about statistics page in the forum. We worked on a new statistics page which is really full of lot of information and will be very useful. It has got: Authentication support. Since we are exposing some server statistics on this page we have secured it using basic PHP authentication. For implementation details look here . If you have GD extension loaded it shows some nice graph regarding cache hit and miss. Well applied CSS with buttons to support different statistics like file cache, output code cache and relative path cache statistics. This file is named 'wincache.php' and is never cached. So this means you will get real time statistics about your cache...
The Windows Cache Extension 1.0 for PHP – Release Candidate is available for download. The release contains functionality and stability improvements and it is believed to have the quality level suitable for production deployments. Install the Windows Cache Extension 1.0 for PHP – RC To install the Windows Cache Extension for PHP 5.2 and PHP 5.3, use the download links at the extension’s home page at http://www.iis.net/extensions/wincacheforphp . The installation with Web Platform...( read more ) Read More...
Have you submitted your response to the survey yet? If you have, thank you for taking the time to provide us with your feedback. If you have not yet taken the survey OR have not finished it yet, it's time to get it completed so that your voice can be heard. The survey, which is available here will close on 21st October 2009. Thank you, Raghu Ram Principal Group Program Manager, SQL Connectivity, Microsoft Corp, Redmond, WA...( read more ) Read More...
There has been too many problem reported in our forum about not able to configure one particular extension. The problems are many: Configuring a non-compatible version of the extension Missing some dependent DLL Trying to use thread safe version of the extension DLL for non thread safe PHP build and vice-versa If you have configured a PHP extension and you can't see it loaded, I generally run the command (assuming your PHP is installed at 'C:\Program Files\PHP') 'C:\Program Files\PHP\php-cgi.exe' -v from the command prompt. This really helps in catching some error. So what's the best way to configure a PHP extension. I would say if the extension you are trying to install is available as part of PHP MSI, it is the best idea to use the PHP MSI to configure your extension. There is no manual step involved and all right dependent DLL will also get installed. Plus your PHP.INI file gets updated automatically. Now I am going to tell you how to achieve this from a...
As part of WINCACHE statistics page, I came across the need for making the WINCACHE.php file having some kind of authentication. Yes we will have an official WINCACHE statistics page shipping with the Release Candidate due sometime this month. To know more about this upcoming release please read this blog from the Developer on the team. This is the time that I learnt that PHP has built in authentication support. I am going to talk about basic authentication page using PHP. I will be using code snippet from our new WINCACHE.php page to explain how easily this can be achieved. This functionality is available when PHP is running as an Apache module and not the CGI. So it also works with IIS configured to run PHP using FastCGI. This is how it works: Use the header() function of PHP to send 'Authentication required' message to the browser. Browser will pop up a window asking for USERNAME/PASSWORD. Once the user fills in the USERNAME and PASSWORD the script containing the authentication...
There has been numerous post on the IIS forum where people have difficulty installing PHP on Windows. There are many reasons for this. However the main issue is that people try to do the installation manually and any manual step is prone to error. It is not a bad idea to do the installation manually but I would suggest to leave that to an advanced user who knows PHP well and has successfully configured it many times. For novice user or people who are just starting using PHP, I am going to talk about an easy way to install PHP on Windows and IIS. This article applies to user running IIS from Windows XP to Windows 7. Let me introduce you to Microsoft Web Platform Installer . Let's call this WPI in short. WPI is a single stop shop for all the major component installations for IIS. Once you have WPI installed, go to 'Web Platform Section' and click on 'Frameworks and Runtimes'. Click on 'customize'. You can see PHP listed as one of the 'Runtimes'. Select...
This post describes how to configure IIS 7 to output syntax highlighted source code for PHP files stored on the web server or site. This feature may be useful for development environments when you want to quickly make the source code accessible to other team members. WARNING: Never attempt to do what is described below on any internet accessible web site! Doing so will greatly compromise the security of your web application. The HTTP requests for the PHP source code are usually identified by the...( read more ) Read More...
More Posts
Next page »