English 中文(简体)
PHP - Problem with script tags within the php Code
原标题:PHP - Problem with script tags within the php code
  • 时间:2011-06-22 08:27:15
  •  标签:
  • php

我正在编辑一些我从其他地方继承下来的法典,这部法典的文字标签似乎存在问题。 如果我去掉这两页,但很显然,java字母没有用。

我不喜欢营地,因此我不敢肯定如何解决这一问题。

$GLOBALS[ TEMPLATE ][ extra_head ] = <<<ENDHTML
<script src= js/ajax.js  type= text/javascript ></script>
<script src= js/blog.js  type= text/javascript ></script>
ENDHTML;
最佳回答

仅是一gues,但如果在<的截止日期之前或之后同一行有任何特性(包括空间或标语),则你会发现错误。

http://www.php.net/manual/en/English.types.string.php# Language.types.string.syntax.dochere”rel=“nofollow noreferer” 手册:

警告

It is very important to note that the line with the closing identifier must contain no other characters, except possibly a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs before or after the semicolon. It s also important to realize that the first character before the closing identifier must be a newline as defined by the local operating system. This is on UNIX systems, including Mac OS X. The closing delimiter (possibly followed by a semicolon) must also be followed by a newline.

如果这一规则被打破,而封闭式识别器不是“清洗”,则不会被视为封闭式识别器,而购买力平价将继续寻找。 如果在目前档案结束前没有发现适当的封闭标识,则最后线将出现差错。

如果报告错误,那么你所忽略的(在你的文字编辑中强调的空白屏幕和破碎的辛迪加)将是 par误的结果或症状。 很难看出,这是否属于你的职位,不属于实际档案的范围。

检查是否适用。

Aside: It s a good habit to refer on error_ reporting(E_ALL) 在发展阶段。

问题回答

这些标签只是允许你在不必使用报价的情况下,在购买力平价法中加入光是超文本。

它把这2个标之间的任何东西分配到变量上:$GLOBALS[ TEMPLATE] 页: 1





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...