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.
相关文档:
匹配中文字符的正则表达式
: [\u4e00-\u9fa5]
匹配双字节字符(包括汉字在内)
: ["\x00-\xff]
应用:计算字符串的长度
(一个双字节字符长度计2,ASCII字符计1)
String.prototype.len=function(){return
th ......
【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET['foo'],$_POST['foo'],$_SESSION['foo']来得到。当然也可以修改自动全局变量为开(php.ini改为register_globals = On);考虑到兼容性,还是强迫自己熟悉新的写法比较好。
【2】Wi ......
看了些PHP的基础知识,自己在这里总结下:
1,在HTML嵌入PHP脚本有三种办法:
<script language="php">
//嵌入方式一
echo("test");
</script>
<?
//嵌入方式二
echo "<br>test2";
?>
<?php
//嵌入方式三
echo "<br>test3";
?>
还有一种嵌入方式,即使用 ......
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 ......