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

gwt与php混合使用~

注意的有几点,hosted模式下RequestBuilder读取server的json有问题,用本地文件代替即可。
Zend_Json默认输出的json数据不能被读取,必须加[和]...
echo "[";
echo Zend_Json::encode($myconfig);
echo "]"; 
简单读取json的例子:
package com.esbrain.client;
import com.esbrain.shared.FieldVerifier;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.Window;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.Response;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.*;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class mygwt implements EntryPoint {
String MY_URL = "http://feeds.feedburner.com/jandan?format=xml";
final private Button btn = new Button();

private static final RequestBuilder reqBuilder = new RequestBuilder(
RequestBuilder.GET ,
"/my.json"
//"http://localhost/ecshop/public/rdcfg/base"
);
private class SendButtonHandler implements ClickHandler{
public void onClick(ClickEvent ce){
try{


相关文档:

PHP常用正则表达式

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

php单例模式


<?php  
    //单例模式的类Lock
  
    class
 Lock  
    {  
        //静态属性$instance
  
        ......

PHP的基础知识

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

Apache+Mysql+Php安装文档(rpm版本)

  1.mysql
  在如下页面下载mysql的for linux rpm包
   http://www.mysql.com/downloads/down...3.52-1.i386.rpm ;
   http://www.mysql.com/downloads/down...3.52-1.i386.rpm ;
  存至/home/tmp目录
  命令列表: 
  cd /home/tmp
  rpm -ivh MySQL-3.23.52-1.i386.rpm #安装mysql serv ......

php迅雷的链接算法

$thunder = ("Thunder://QUFodHRwOi8vNjAuMTkxLjYwLjEwODo4MDgwL3hweGlhemFpL0RlZXBpbl9HaG9zdF9YUF9WMTguMC5pc29aWg==");
//解密它
$thunder = trim($thunder,'Thunder://');
$c_thunder = base64_decode($thunder);
$c_thunder = ltrim(rtrim($c_thunder,'ZZ'),'AA');
//out [url]http://60.191.60.108:8080/xpxi ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号