Hi, this works well on my localhost but when I upload it to my web server I get:
Parse error: syntax error, unexpected T_STRING in /home/zupa/public_html/grafika.php on line 1
This whole xml thing is new to me and I really dont know why doesnt it work on my server (while it works on localhost)

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1257">
<link rel="shortcut icon" href="/favicon.png" type="image/x-icon" />
<title>Riteriai ir Pabaisos</title>                                                                       
<style type="text/css">
some css goes here
</style>

Thank you for any constructive feedback.

Recommended Answers

All 2 Replies

If you're trying to display XML data on an HTML page (the file extension is .html), this article will help you: http://www.w3schools.com/xml/xml_examples.asp

For starters, if your page is not a .xml, you can't start the page with

<?xml version="1.0"?>

Thank you, that cleared things up. Now it works :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.