简单的PHP问题来自无知 [英] Easy PHP question from clueless

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

问题描述

嗨....我有一个关于PHP的问题,我对此一无所知。我想知道如何处理我在互联网上遇到的一些PHP代码,我想知道它是如何工作的。以此页面为例,让我们说代码将计算此页面上的每个字母并给出答案。我如何让代码工作?我只是将其插入源代码中的任何位置,还是像其他语言一样需要编译?

Hi....I have a question about PHP, which I know nothing about. I was wondering what to do with some php code that I came across on the internet and I wanted to see how it works. Using this page as an example, let''s say the code will count every letter on this page and give an answer. How do I go about getting the code to work? Do I simply insert it anywhere in the source code or does it require ''compiled'' like some other languages?

推荐答案


嗨....我有一个关于PHP的问题,我对此一无所知。我想知道如何处理我在互联网上遇到的一些PHP代码,我想知道它是如何工作的。以此页面为例,让我们说代码将计算此页面上的每个字母并给出答案。我如何让代码工作?我只是将它插入源代码中的任何位置,还是像其他语言一样需要编译?
Hi....I have a question about PHP, which I know nothing about. I was wondering what to do with some php code that I came across on the internet and I wanted to see how it works. Using this page as an example, let''s say the code will count every letter on this page and give an answer. How do I go about getting the code to work? Do I simply insert it anywhere in the source code or does it require ''compiled'' like some other languages?



如果您的网络服务器安装了PHP,您可以将其插入任何扩展名为.php的文件<?php?>括号。

Provided your web-server has PHP installed, you can insert it into any file with a .php extension inside <?php ?> brackets.


感谢您的快速回复。所以,让我说我有这个:

<?php

blah

blah

blah

?>


......我在这个论坛页面上。我可以查看源代码,然后将其粘贴到其中?然后我必须''另存为''* .php它应该运行并为我计算页面字符?
Thank you for the quick reply. So let''s say I have this:
<?php
blah
blah
blah
?>

...and I''m on this forum page. I can view the source code, then paste that in to it? Then I have to ''save as'' *.php and it should run and count the page characters for me?



谢谢快速回复。所以,让我说我有这个:

<?php

blah

blah

blah

?>


......我在这个论坛页面上。我可以查看源代码,然后将其粘贴到其中?然后我必须''保存为''* .php它应该运行并为我计算页面字符?
Thank you for the quick reply. So let''s say I have this:
<?php
blah
blah
blah
?>

...and I''m on this forum page. I can view the source code, then paste that in to it? Then I have to ''save as'' *.php and it should run and count the page characters for me?



是的,前提是所有的PHP代码都是正确的。

Yes, provided all of the php code is correct.


这篇关于简单的PHP问题来自无知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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