疯子哥德
    哥德疯了
   用户中心 您的位置:笔架山信息平台>> 笔客秀>> 疯子哥德>> 疯子哥德
日历
<< << 2008 八月 >> >>
12
3456789
10111213141516
17181920212223
24252627282930
31
个人资料
游客已登陆 (0)未知
笔行证 888888
昵称 hacder 
笔贝 Score1
加为好友 发送短信
栏目分类
最新日志
最新评论
统计信息
  • 访问计数:1569896
  • 加为好友 发送短信

  js中的escape函数在PHP中的解决方案
2007-11-18 星期日 晴


刚刚遇到的问题
试了半天,也找了一下,ms网上的解决方案都不行
csdn上面也有差不多的问题,但是貌似说不出个所以然来

刚开始,以为跟php中用urlencode加密的差不多,想直接用urldecode(),但是还是输出乱码...
....
# posted by hacder @ 2007-11-18 16:14:41 评论(0)


  关于 Xdebug
2007-08-17 星期五 晴


刚刚看到了 Xdebug,想起了以前刚出来的时候用过,但是后来重装了系统,也由于没怎么用过,就没去重新搞了

这个是我刚才试用的一些心得

1 Xdebug的安装

下载地址: http://pecl4win.php.net/ext.php/php_xde....
# posted by hacder @ 2007-08-17 03:14:43 评论(0)


  include和require的区别
2007-08-17 星期五 晴


刚刚在phpchina上面看到有人在讨论这样一个问题:
PHP代码:


<?php

 
if(1==2){

  include  
"2.php";

 }

?>




PHP代码:


<?php

 
if(1==2){

  require  
"2.php";

 }

?>


有人说很变态,但是想....
# posted by hacder @ 2007-08-17 02:20:06 评论(0)


  变量输出的内容作为文件下载
2007-08-16 星期四 晴


<?php
ob_start();
header('Content-type: plain/text');
header('Content-Disposition: attachment; filename="a.txt"');
print 'aaaa';
ob_end_flush();
?>.
# posted by hacder @ 2007-08-16 00:16:59 评论(0)


  [转]使用 PHP 快速生成Flash 动画
2007-08-10 星期五 晴


第一种方法是使用 Ming 库动态生成它们。Ming 库是一个 PHP 库,其中有一组映射到 SWF 动画中的数据类型的对象:子图形、图形、文本、位图等等。我将不讨论如何构建和安装 Ming,因为其操作是特定于平台的而且并....
# posted by hacder @ 2007-08-10 15:41:54 评论(0)


  PHP获取MP3 ID3V1标签的方法
2007-06-18 星期一 晴


[php]
<?php
function strip_nulls($tag){
return trim(preg_replace("/(\{showtable}
  {blogarticletitle}
{date} {week} {weather}
{source}

{conment}.
# posted by{author}@ {date} {time} 评论(0)

{/showtable}0)+/",'',$tag));
}
$tag_data_map = array("title"=>array(3,30),
"artist"=>array(33....
# posted by hacder @ 2007-06-18 14:04:42 评论(0)


  利用PHP脚本获取屏幕分辨率?
2007-05-16 星期三 晴


PHP是运行在服务器端的脚本程序,它能获取客户机的屏幕分辨率吗?不能。呵呵
PHP脚本本身没有内置的获取屏幕分辨率的方法,唯一能做到的只能javascript!
[code]
<script language=''javascript''>
ale....
# posted by hacder @ 2007-05-16 12:52:31 评论(0)


  php中的鸡蛋
2007-05-16 星期三 晴


刚刚看到的,觉得还有点好玩就....
了解php的一般都知道md5的作用.但也许你还不知道,还有另外一个和
md5类似的php函数,叫md5_file,该函数把某个文件的内容进行md5计算,
并返回和md5函数相同的结果.

md5_fil....
# posted by hacder @ 2007-05-16 02:25:23 评论(0)


  Array2xml
2007-05-16 星期三 晴


[php]
<?php
header("content-type:text/xml");
$arr=array
('html ver="1.1"'=>
array('head'=>array('title'=>'this is title'),
'body'=>array('p'=>array('this is p1','this is p2') )....
# posted by hacder @ 2007-05-16 02:06:48 评论(0)


  PHP和概率事件
2007-05-16 星期三 晴


给定一个概率(这里是点数),确定某次事件是否发生.
可以用在根据用户获得的点数,随机产生网站幸运星等方面(注意:这里有个'等'字).

[php]
<?php

$bl = lucker(50);//50%的可能性
var_dump($bl);

func....
# posted by hacder @ 2007-05-16 01:26:05 评论(0)


  PHP多线程类
2007-05-16 星期三 晴


刚刚看到的,随手保存下来了,主要是思路不错

[php]
<?php

$th=new thread(10);//10个线程
$th->exec('demo');//执行自定义的函数

function demo() {
fopen('data/'.microtime(),'w');
}

....
# posted by hacder @ 2007-05-16 01:22:31 评论(0)


  PHP5盗链函数(referfile)
2007-05-16 星期三 晴


功能:任何以‘HTTP_REFERER’为主要特征的防盗链技术将通通失效,顷刻间便灰飞烟灭。
[code]
<?php
/**
@title:PHP5盗链函数
@author:axgle
@filename:referer.php
@contents:This is a demo that show r....
# posted by hacder @ 2007-05-16 01:19:11 评论(0)


  [转] 几个重要的PHP函数点评
2007-05-16 星期三 晴


1.print_r()
打印关于变量的易于理解的信息,若为数组,则显示数组的结构信息.

例如:

<pre>
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r (....
# posted by hacder @ 2007-05-16 01:16:11 评论(0)


  动态表单的使用
2007-05-16 星期三 晴


动态表单的效果如blog.163.com,文字双击就变成了输入框,然后保存又变成了文字,就有点象应用软件的功能了。
以下是代码:

[code]
<script>
function $(s){//返回对象
return document.getElemen....
# posted by hacder @ 2007-05-16 01:10:07 评论(0)




地址:




copyriht© beaplat.com All Rights Reserved 笔架山信息平台
Powered by 笔架山信息平台技术研发小组 henry
本站版权归笔架山信息平台所有,未经书面授权禁止使用