Aptana studio 2.0 +aptana php plugin 1.1
I’ve just updated Aptana Studio from 1.5 to 2.0 only to find out that the spectacular Aptana PHP plugin is not longer supported and its installation has been removed from the Install Additional Features view. However, with some tricks we can still install the old Aptana 1.5.1 in order to use it. Well, in fact we can even install Aptana PHP in Studio 2.0.
First, download Aptana Studio 2.0 and install it.
When you reach the Install Additional Features after installing Aptana, close it, what we need is not here.
from the Help menu, click on Install New Software…
add the Aptana PHP plugin update site. Click on the Add… button and type the url http://update.aptana.com/update/php
Choose the Aptana PHP 1.1 and install it. After restarting Studio, the Aptana PHP plugin will be installed and your php files will be handled by it.
As you can see on the Plugins Manager, Aptana PHP 1.1 is installed (the Duplicate location warning appears because I typed the url again for this tutorial). I’ve you already installed Eclipse PDT, make sure you remove it, or your php files won’t be handled by Aptana PHP.
So that’s it, if you find any issues please let me know.
相关文档:
1.安装apache2.0
sudo apt-get install apache2
安装后在浏览器中打开:
http://localhost/或者http://127.0.0.1
如果出现It works!,那证明安装成功。
2.安装PHP
sudo apt-get install php
5 //安装PHP
5
sudo apt-get install libapache2-mod-php5 //配置APACHE+PHP
sud ......
花了几个小时的时间研究一下,发现还是比较好用的!
smarty可以很好地将逻辑与表现分离,后台程序员和web前端工程师各干各的事,不像以前,php代码和html代码杂合在一起,后台程序员和前端前序员一起发飙,因为他们的技能要求更高了,都必须要懂对方的语言,呵呵!
网上介绍的配置太哆嗦了,也许是老版本的缘故的,因为我 ......
PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用。
$_server 代码
1. $_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。
2. $_SERVER['argv'] # 传递给该脚本的参数。
3. $_SERVER['argc'] # 包含传递给程序的命令行参数的个数(如果运行 ......
属性名称:from,item,key,name
注意:
1,from和item是必要属性
2,{foreach}循环的name可以是任何字母,数组,下划线的组合,参考PHP变量。
3,{foreach}循环可以嵌套,嵌套的{foreach}的名称应当互不相同。
文件一:index.tpl
<b>下面的数据分别是:</b>
<ul>
{foreach from=$myArray1 key=k ite ......
每个PHP程序员都知道PHP有强大的正则表达式功能,为了以后的工作方便,我从网上整理了关于正则表达式的资料,方便以后工作时的进行资料查阅。
正则表达式(regular expression)描述了一种字符串匹配的模式,可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。 ......