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

配置eclipse的php开发插件

先下载并安装eclipse,下载地址:http://download.Eclipse.org/downloads/index.php。Eclipse 需要 jre 的支持,所以如果机器上还没装jre的话就赶快去下载一个装上,http://java.sun.com有jre的下载。
第二,下载并安装 PHP 在 Eclipse 的插件
地址:http://sourceforge.net/project/showfiles.php?group_id=57621&package_id=53190。下载完成后,解压,然后把解压出来的文件夹都复制到Eclipse主目录的plugins目录下。到这一步,在Eclipse的PHP插件就算是好了,我们就可以在Eclipse里新建PHP的Project了,而且支持php的语法加亮等,快打开看看吧。
不过建议你最好通过eclipse自动更新的方法安装,点击help->software updates->find and install->search for new features to install ->点击next ->new remote site。
输入一个name:phpeclipse,url:地址,地址1:http://phpeclipse.sourceforge.net/update/cvs(不太稳定)或者是 http://phpeclipse.sourceforge.net/update/releases (比较稳定)
输入完后点击oK返回,点击finish完成,eclipse会自动连接并检测是否有可用插件,检测完后,选择最适合的插件下载并安装,安装完成后重新启动eclipse就可以使用了。
这二天看了eclipse的视频教学列一下其中指出的插件方法:)
一、使用eclipse的SoftwareUpdates / Find and install... search for new features... 输入软件安装地址进行安装
二、下载插件文件,将其解压缩到eclpise对应的目录中。重起eclipse,如果插件不能升效,则请eclipse\configuration\org.eclipse.update目录删除后再启动eclipse:)
三、links文件方式。在eclipse目录中新建links目录以jode为例, 创建插件存放目录: eclipsePlugins\jode\eclipse 将plugins解压到eclipse目录中,这样eclipse中中就有了二个插件目录features and plugins. 在links目录中建立一个以link为扩展名的文本文件如jode.link,内容如下path=disk:/eclipsePlugs/jode 即可:) 重启eclipse插件就会安装完成:)


相关文档:

php删除文件和整个文件夹

function delfile($dir)
{
if (is_dir($dir))
{
$dh=opendir($dir);
while (false !== ( $file = readdir ($dh)))
{
if($file!="." && $file!="..")
{
$fullpath=$dir."/".$file;
if(!is_dir($fullpath))
{
unlink($fullpath);
} ......

在Apache中支持PHP的配置参数

打开 httpd.conf 文件 加入以下配置
以php模块配置apache2.2.x 
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL by hooyes
PHPIniDir "D:/php-5.2.6-Win32/"
LoadFile D:/php-5.2.6-Win32/php5ts.dll
LoadFile D:/php-5.2.6-Win32/li ......

PHP中的stristr(),strstr(),strpos()速度比较


PHP中的stristr(),strstr(),strpos()速度比较

测速代码:

<?php
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
......

php二位数组排序

<?php
$array[] = array("id"=>20,"name"=>"li");
$array[] = array("id"=>21,"name"=>"ai");
$array[] = array("id"=>20,"name"=>"ci");
$array[] = array("id"=>22,"name"=>"di");
 
foreach ($array as $key=>$value){
 $age[$key] = $value['id'];
 
}
array_ ......

php打开错误提示

如果不具备修改php.ini的权限,可以如下:
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);
当然,如果能够修改php.ini的话,如下即可:
display_errors = On
error_reporting  =  E_ALL & ~E_NOTICE ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号