alexchenco alexchenco - 1 year ago 110
PHP Question

Parse error: syntax error, unexpected T_STRING with index.php?

It works perfectly in local host but when I upload it intothe server it has the following error:

Parse error: syntax error, unexpected T_STRING in D:\Hosting\4923367\html\beta\index.php on line 4


include_once 'localization.php';
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<!--Start Kampyle Exit-Popup Code-->
<script type="text/javascript">
var k_push_vars = {
"view_percentage": 10,
"popup_font_color": "#000000",
"popup_background": "#D4E2F0",
"header": "Your feedback is important to us!",
"question": "Would you be willing to give us a short (1 minute) feedback?",
"footer": "Thank you for helping us improve our website",
"yes": "Yes",
"no": "No",
"text_direction": "ltr",
"images_dir": "",
"yes_background": "#76AC78",
"no_background": "#8D9B86",
"site_code": 9662374
<script type="text/javascript" src=""></script>
<!--End Kampyle Exit-Popup Code-->

<!-- Start Kampyle Css -->
<link rel="stylesheet" type="text/css" media="screen" href="" />
<!-- End Kampyle Css -->


Answer Source

<?xml is being mistaken for PHP short-tag, try echoing it ( although I don't see a need for it )

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download