SCRIPT标签 [英] SCRIPT tag

查看:64
本文介绍了SCRIPT标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的脚本标签出现问题。我试图通过脚本标记包含一个

的PHP文本:


< script src =" http:/ /pinata.no-ip.org/~altmarvel/Scripts.php"></script>


这什么都不产生,但我不知道为什么。我甚至已经把它变成了

,就像把一个简单的HTML字符串放在里面一样简单。

Scripts.php,它拒绝打印出来。然而,这拒绝打印

任何东西。


我从80年代的玩具网站获得了一些示例代码,字符串

他们使用的工作是:


< script src =" http://www.seibertron.com/news/include_news.php">< /脚本>


我不知道这两个字符串之间的区别是什么,并且

这是令人愤怒的。有人知道吗?是否有PHP开关或

的东西?

I''m having some trouble with my script tag. I''m trying to include a
piece of PHP text via the script tag by doing so:

<script src="http://pinata.no-ip.org/~altmarvel/Scripts.php"></script>

This produces nothing, but I don''t know why. I''ve even gone so far as
to make it as simple as putting a simple HTML string inside
Scripts.php, which it refuses to print out. Yet, this refuses to print
anything out.

I''ve gotten some sample code from some 80s toy site, and the string
they use which works is:

<script src="http://www.seibertron.com/news/include_news.php"></script>

I have no clue what the difference between these two strings is, and
it''s infuriating. Does anybody know? Is there a PHP switch or
something?

推荐答案

li *************** @ yahoo.com (Liam Gibbs)写道:
li***************@yahoo.com (Liam Gibbs) wrote:
我的脚本标签出现问题。我试图通过脚本标记包含一段PHP文本:

< script src =" http://pinata.no-ip.org /~altmarvel/Scripts.php"></script>

这什么都不产生,但我不知道为什么。


浏览器通常不知道如何执行PHP。即使他们这样做了,你也要告诉他们,使用SCRIPT标签的TYPE属性,脚本将是

。如果你使用浏览器

并没有因为省略了所需的

TYPE属性而完全取消了SCRIPT标签的资格,那么当没有给出类型时它需要Javascript

明确。

我甚至已经把它变得如此简单,就像把一个简单的HTML字符串放在里面一样。
Scripts.php,它拒绝打印出来。然而,这拒绝打印任何东西。

我从80年代的玩具网站获得了一些示例代码,他们使用的字符串是:

< script src =" http://www.seibertron.com/news/include_news.php">< / script>
I''m having some trouble with my script tag. I''m trying to include a
piece of PHP text via the script tag by doing so:

<script src="http://pinata.no-ip.org/~altmarvel/Scripts.php"></script>

This produces nothing, but I don''t know why.
Browsers don''t ordinarily know how to execute PHP. Even if they did,
you would have to *tell* them that the script is going to be PHP by
using the SCRIPT tag''s TYPE attribute. If you''re using a browser that
doesn''t disqualify the SCRIPT tag altogether for omitting the required
TYPE attribute, it expects Javascript when no type is given
explicitly.
I''ve even gone so far as
to make it as simple as putting a simple HTML string inside
Scripts.php, which it refuses to print out. Yet, this refuses to print
anything out.

I''ve gotten some sample code from some 80s toy site, and the string
they use which works is:

<script src="http://www.seibertron.com/news/include_news.php"></script>




什么网站? URL?

-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez ?ter le premier point de mon adresse de courriel。



What site? URL?
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.


Liam Gibbs写道:
Liam Gibbs wrote:
我的脚本标签出现问题。我试图通过脚本标记包含一段PHP文本:

< script src =" http://pinata.no-ip.org /~altmarvel/Scripts.php"></script>

PHP是一个服务器端语言解释器。

我想你可以尝试给出一个类型 ;价值,比如

type =" text / php"。

我不知道这两个字符串之间的区别是什么,并且
它''真气。有人知道吗?有没有PHP开关或
东西?
I''m having some trouble with my script tag. I''m trying to include a
piece of PHP text via the script tag by doing so:

<script src="http://pinata.no-ip.org/~altmarvel/Scripts.php"></script>
PHP is a server-side language interpreter.
I suppose you could try giving a "type" value, something like
type="text/php".

I have no clue what the difference between these two strings is, and
it''s infuriating. Does anybody know? Is there a PHP switch or
something?



你知道PHP是什么吗?


-

jmm在sohnen-moe dot com的破折号列表

(删除.TRSPAMTR电子邮件)


Do you know what PHP is?

--
jmm dash list at sohnen-moe dot com
(Remove .TRSPAMTR for email)


Liam Gibbs写道:
Liam Gibbs wrote:
我的脚本标签出现问题。我试图通过脚本标记包含一段PHP文本:

< script src =" http://pinata.no-ip.org /~altmarvel/Scripts.php"></script>
I''m having some trouble with my script tag. I''m trying to include a
piece of PHP text via the script tag by doing so:

<script src="http://pinata.no-ip.org/~altmarvel/Scripts.php"></script>




您似乎不知道PHP是什么。

http://www.php.net/tut.php
< a rel =nofollowhref =http://www.php.net/manual/en/target =_ blank> http://www.php.net/manual/en/


-

马克。



You appear not to know what PHP is.

http://www.php.net/tut.php
http://www.php.net/manual/en/

--
Mark.


这篇关于SCRIPT标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆