N/APosted on - 10/04/2011
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?
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 services.net stopping http/y.
Also, have IIS only listening on the IP address assigned for IIS:httppcf set IP listen-192.168.1.253, making sure: httpcfg query iplisten – make sure the listing are the IPs IIS will be listening to only, restart the IIS services.net start w3svc.
Now here you will have managed to set them apart in the same system, having each on listen on its default port.