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】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET['foo'],$_POST['foo'],$_SESSION['foo']来得到。当然也可以修改自动全局变量为开(php.ini改为register_globals = On);考虑到兼容性,还是强迫自己熟悉新的写法比较好。
【2】Wi ......
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 ......
php教程 调用mssql存储过程实例应用
用mssql_init语句用于初始化存储过程,而后调用mssql_bind语句指定存储过程参数,最后调用mssql_execute执行存储过程。
*/
//连接mssql数据库教程服务器
$link = mssql_connect("127.0.0.1", "sa", "sa") or die("Can't connect sql server");
mssql_sele ......
注意的有几点,hosted模式下RequestBuilder读取server的json有问题,用本地文件代替即可。
Zend_Json默认输出的json数据不能被读取,必须加[和]...
echo "[";
echo Zend_Json::encode($myconfig);
echo "]";
简单读取json的例子:
package com.esbrain.client;
import com.esbrain.sha ......
属性名称: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 ......