Index.php ile sözdizimi hatası, beklenmedik T_STRING: hatası ayrıştırmak?

2 Cevap php

Bu yerel ana mükemmel çalışıyor ancak ben sunucu intothe yüklediğinizde aşağıdaki hata var:

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

index.php:

<?php
include_once 'localization.php';
?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--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": "http://cf.kampyle.com/",
    "yes_background": "#76AC78",
    "no_background": "#8D9B86",
    "site_code": 9662374
}
</script>
<script type="text/javascript" src="http://cf.kampyle.com/k_push.js"></script>
<!--End Kampyle Exit-Popup Code-->

<!-- Start Kampyle Css -->
<link rel="stylesheet" type="text/css" media="screen" href="http://cf.kampyle.com/k_button.css" />
<!-- End Kampyle Css -->

(Devam ediyor)

2 Cevap

<?xml PHP kısa etiketi için yanlış olan, (ben bunun için bir ihtiyaç görmüyorum rağmen) Yankı deneyin

Sorun kendi sunucularında php.ini dosyaları ayarlarını çelişkili gibi görünüyor. Sunucu ve set php.ini dosyasını düzenleyerek deneyin

short_open_tag = 0

More information about the directives available in your php.ini file can be found here: http://php.net/manual/en/ini.core.php