For step-by-step instructions on how to install PHP on IIS6 (Windows 2003) with the new Microsoft Fast CGI module, see Configuring Fast CGI Extension for IIS 6.0.For step-by-step instructions on how to install PHP on IIS7 (Windows Vista SP1 and Windows 2008) see, Using Fast CGI to Host PHP Applications on IIS 7.0 My original blog post follows below and provides instructions for how to install IIS7 on Vista (RTM) using the ISAPI-based PHP.As far as I'm concerned, it is the problem caused by PHP xml_parser (see:

Besides the effect of not surviving sessions, the Simple XMLElement object may even crash the session_start() function when trying to re-enter the session!

To come up with a solution for this, I used a pattern as follows.

If this is the case, check to make sure that the file in question does not contain an ampersand (&) without a corresponding entity reference.

If it does, or if you want to err on the side of caution, then instead of using simplexml_load_file, try this:$file = file_get_contents('stuff.xml');$temp = preg_replace('/&(?!

So an XML document containing that characters can appear well-formed (i.e.) to many browsers.

But if you try to load this kind of documents with simplexml_load_file you'll have a little bunch of troubles..

Here's my example: Be careful if you are using simplexml data directly to feed your My SQL database using MYSQLi and bind parameters.

The data coming from simplexml are Objects and the bind parameters functions of My SQLi do NOT like that!

I believe that this is exactly the same question discussed in htmlentites.

Following notes to htmlentitles are interesting here too (given in the reverse order, to grant the history): If you need to parse the data from Simple XML into a session variable remember to define the data as a string first.

I'm sure to XML mystics this is wise and wonderful but it really confused me, and I thought it might confuse others.