最新动态
  • news日志翻译系统开通
  • QQ 本站QQ群:54245128(满)
  • ZF QQ ZF QQ群:25125789
  • ZF MSN ZF MSN群:group57479@xiaoi.com
用户登录
  用户:
  密码:
       注册 | 忘记密码
常用链接
本站Logo

 
Powered By
HappyCMS 0.3.0

Zend Framework 1.6.1

SiteMap | BBS Archives

站点链接
论坛新贴 最新精华
最新翻译Blog More...
   [ringtail] 使用NTILE()方便地生成tag云图 ...    [ringtail] Zend Framework Q&A Session
   [iwind] 友善地"死掉" - PHP register_shutdo ...    [mayongzhan] PHP6的新特性:Unicode和TextIterato ...
   [iwind] 站内新闻:转向Solar框架    [mayongzhan] 在javascript中使用php风格的$global ...
   [iwind] 用EditPlus通过ssh运行远程脚本 ...    [iwind] PHP APC函数apc_shm_create在命令行下 ...
   [iwind] DevShed: 使用PHP5的DOM XML扩展插入 ...    [mayongzhan] php5中Iterator与smarty整合
   [haohappy] Zend Framework获得Jolt大奖(生产效率 ...    [iwind] 开发者文集:在Windows上安装PHP ...
   [ringtail] 提交Bug报告    [iwind] Zend Framework 1.5 RC1发布
   加入 | 翻译团队: mayongzhan (18) iwind (10) ringtail (9) haohappy (6) helloyou (2) wohugb (0) jasonqi (0) littlexiang (0)
 全球PHP博客聚合         中文博客 | 英文博客      种子列表      
收缩所有 | 展开所有
 
  Daniel Cousineau's Blog: Outputting CSV as a Downloadable File in PHP


In a recent post to his blog Daniel Cousineau shows a method for correctly outputting CSV data in push down to the client browser as a method of export.



Nearly every application you could write in for the business sphere in PHP probably requires some sort of data export, most likely in the CSV format. The easiest way to provide a downloadable file is by altering the headers and echo'ing the file content.


His method sets the headers for the CSV file type then pushes the content out (contained in an array) via the fputcsv function. He wraps it all in a function near the end for simple cut and paste.

2008-10-13 21:40:03 | 全文 | 评论(0)
 
  Community News: Latest PEAR Releases for 10.13.2008

 

Coffee is the most important thing for developers. Yet, good coffee. At conferences it is almost vital to have a good coffee during the breaks and talk to experts. For this reason, MAYFLOWER will have a Coffee Lounge at the International PHP Conference in Mainz (Germany): Get coffee en masse for your business card. But you won't get only coffee, you can order following different coffee specialities:

 

  • Web Security (provided by SektionEins)
  • Quality Assurance
  • PHP5 Migration
  • Zend Framework
  • High Performance
  • Database Questions

 

Each coffee speciality h ......

2008-10-13 18:40:07 | 全文 | 评论(0)
 
  [DBA notes] RESCUE [Flickr]

Fenng(dbanotes) posted a photo:


RESCUE



2008-10-13 15:41:06 | 全文 | 评论(0)
 
  [DBA notes] 南京,南京

且说那天到南京的时候晕车吐的七荤八素,到了宾馆休息了一会,就跑去参观途牛旅游网办公室,他们的办公室不太好找,不过正好在南京珠江路上溜达了一下,这条路类似北京的中关村,杭州的文三路,总之就是电子一条街。



在途牛与隽辰陈福炜 先见面聊了一下,主要还是交流了一下招人难的问题,倒没怎么聊技术相关的东西。然后见到了于敦德,他倒是比想象中的瘦一些,一看就是个坐技术出来的创业人,低调,而途牛的朋友们给我最大的印象也都比较低调,他们的公室应该装重新装修一下了,现在一点不像 Web 公司 :) 整个公司的规模倒是比我想象的大多了。途牛是属于那种能"给用户省钱"的公司,相信路会比较好走。又聊了一会儿,拿了隽辰赠的一件衣服撤退 :)



第二天的面试倒是还算顺利,所以晚上又有时间聚了一下。中间还有个小插曲,有个 ......

2008-10-13 10:41:12 | 全文 | 评论(0)
 
  [DBA notes] 山寨斑马 [Flickr]

Fenng(dbanotes) posted a photo:


山寨斑马



据说长春某公园里的

2008-10-12 23:41:07 | 全文 | 评论(0)
 

Fenng(dbanotes) posted a photo:


南京 1912 街区地图



1912 ,原来是中华民国元年 :)



吃的 900 锅,然后去了茶客老站

2008-10-12 23:41:07 | 全文 | 评论(0)
 

Over the past few weeks I annoyed my environment with praising DTrace whenever possible. Yesterday, during a break at the Barcamp Munich, I gave Wolfram a short introduction on his Mac and decided to put some stuff here:

DTrace is a toolkit available on Solaris (Solaris 10 or OpenSolaris), recent MacOS versions and FreeBSD for mightier than tools like truss or strace but with way less impact. DTrace allows you to "hook" (called "probes") into the system and allows to do some analysis then.

I guess all that works best by showing an example first: PHP uses a wrapper over the system's memory allocation using a function called _emalloc (which is wrapped by a CPP macro called emalloc) so it might be interesting to see how often that fun ......

2008-10-12 21:40:07 | 全文 | 评论(0)

查看更多日志