易截截图软件、单文件、免安装、纯绿色、仅160KB

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.
 


相关文档:

PHP常用正则表达式

    匹配中文字符的正则表达式
: [\u4e00-\u9fa5]
    匹配双字节字符(包括汉字在内)
: ["\x00-\xff]
    应用:计算字符串的长度
(一个双字节字符长度计2,ASCII字符计1)
    String.prototype.len=function(){return
th ......

php 连接access的代码

<?php
$connstr="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb");
$connid=odbc_connect($connstr,"","",SQL_CUR_USE_ODBC);
$issuetime=date("Y-m-d H:i:s");
$sql="insert into test values("","",...)";
$result=odbc_exec($connid,$sql);
if($result) echo "successful";
else ec ......

PHP的基础知识

看了些PHP的基础知识,自己在这里总结下:
1,在HTML嵌入PHP脚本有三种办法:
<script language="php">
//嵌入方式一
echo("test");
</script>
<?
//嵌入方式二
echo "<br>test2";
?>
<?php
//嵌入方式三
echo "<br>test3";
?>
  还有一种嵌入方式,即使用 ......

PHP中$_SERVER的详细参数与说明

PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用。
$_server 代码
1. $_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。
2. $_SERVER['argv'] # 传递给该脚本的参数。
3. $_SERVER['argc'] # 包含传递给程序的命令行参数的个数(如果运行 ......

PHP smarty foreach用法!

属性名称: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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号