PHP XML file encountering problem

Asked By 10 points N/A Posted on -

I am reading an XML file using fopen method, like following and displaying on my website:

$fh = fopen($myFile, 'r');

When I run it locally on Apache on Windows, then it displays fine but after uploading it on another Windows server running IIS, it is displaying some weird characters like:

’ is being displayed instead of ’

I tried using different encoding types like:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

but result is the same. What is reason for this?

Answered By 0 points N/A #86478

PHP XML file encountering problem


Try this, it worked for me.  In this case, the problem is because the IIS socket pool is claiming all ports for all loaded IP addresses.  All of them.  It doesn't matter whether they are configured in IIS or on other ports.

What to do is : Extract the httpcf.exe utility form the supporting tools area on the windows C. D. Stop all its stopping http/y. 

Also, have  IIS only listening on the IP address assigned for IIS:httppcf set IP listen-, making sure: httpcfg query iplisten – make sure the listing are the IPs IIS will be listening to only,  restart the IIS start w3svc.

Now here you will have managed to set them apart in the same system, having each on listen on its default port.

Login/Register to Answer

Related Questions