![]() |
|
#1
|
||||
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?> problemI am using the following header on my webpages on my local servers:
Code:
On my Mac, which I am using Apache 2.0.52, everything reads fine. On my PC, which I am using Apache 2.0.50, I have to remove Code:
I have gone through the httpd.conf files on both servers. I can't find the error. |
||||
|
#2
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problemStill need an answer.
|
|
#3
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problemEventhough I have nothing useful to share, I have to ask: Which browser on Windows? Internet Explorer only? Does the page load with Firefox/Opera on Windows?
Also, the Content-Type of XML files are text/xml usually, your web pages may be sending text/html instead and that may be the issue with some browsers. If these are XHTML, maybe application/xhtml+xml is what you need, but I am not the expert. |
|
#4
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problemIt doesn't work on any browser on my PC. I've tried IE 6, NS 7.2, NS 8.1, and FireFox 1.0.6.
On my Mac, I've tried NS 7.2, FireFox 1.0.7 and 1.5, Camino 1.0b1, Shiira 1.1, and Safari 1.3. They all work fine. afa, Quote:
|
|
#5
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problemI still don't understand why it works on my Mac (OS X 10.3.9) with Apache 2.0.52 but it doesn't work on my PC (XP sp2) with Apache 2.0.50. |
|
#6
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem I got it! Thanks, Admin. You steered me in the right direction. I used Code:
I still don't know why the Mac didn't require that code. Oh, well. Thank you again. |
|
#7
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem The xml was only working when I loaded the webpage from the hard drive (file:///C:/...). When I load from the Apache server I still get the parsing error. It appears to be an error with the config file. I read through both the Mac and PC config files again. Other than the basic Mac/PC server location differences I can see no problems. Would it help if uploaded both config files? |
|
#8
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problemDid you get anywhere with this yet? What is the extension of this file? .php or .html or something else?
Quote:
This depends, if you use a server-side scripting language like PHP, you can simply modify this header by using something like: header('Content-type: application/pdf'); see: http://www.php.net/manual/en/function.header.php From the web server, maybe Apache, you can manipulate the headers by using the Header directive (off the mod_headers module), see: http://httpd.apache.org/docs/1.3/mod...rs.html#header |
|
#9
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problemI still can't figure out what is going on. The extension is .html.
I took a quick glance at the apache link. It looks like the information is way over my head. I will give it a closer look and post back. Thanks for your help. |
|
#10
|
||||
|
||||
Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem Couldn't understand the information at Apache. Guess I'll give up on it. I'll just leave that code off any webpages I put on my PC. It just doesn't make any sense why it would work on my Mac server but not the PC server. Their almost identical versions of Apache. Thanks for your help, Admin. |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The