10 Online Magazines for Developers and Designers
2008-08-30 14:4810 great online magazines for both developers and designers. These sites offer a ton of great information and resources to help a newbie and pro alike.... [阅读全文]
Important PHP 5.3 Changes for those of you Running Microsoft Windows
2008-08-30 06:35PHP 5.3.0 is only in its first alpha release. But, if you run PHP in Microsoft Windows, you should talk a look at…... [阅读全文]
Speed up PHP development in Eclipse PDT with Templates and Snippets
2008-08-30 05:39You already know that Eclipse PDT provides autocompletion and hints for PHP's built in functions. In addition, commenting your code with PHPDoc adds autocompletion and hinting for your application's classes, methods, and variables. If you haven't already discovered, Eclipse PDT also provides autoco... [阅读全文]
Basics of Framework Design in PHP Part 2
2008-08-30 04:13Hey, I saw that the first part of this post (Basics of framework design) got a little bit attention I decided to continue that thought. Before you continue reading make sure you read the first part for easier understanding of this post. In order to use or even build a framework first we need to u... [阅读全文]
PHP frameworks? Think again.
2008-08-30 00:44This is the fist time I have heard Rasmus Lerdorf speak and it was entertaining to say the least. Refreshing would another way to describe it, I enjoy hearing real opinions and not holding back — Rasmus doesn’t hold back.Just a short background, Rasmus Lerdorf is the creator of PHP and still contin... [阅读全文]
HTML DOM and easy screen scraping in PHP
2008-08-29 21:54Read on to see how you can easily handle the DOM in PHP much like you can in JavaScript.... [阅读全文]
php代码中去掉引回去的标签
2008-08-29 21:33阅读全文 类别:Php 查看评论.... [阅读全文]
php代码中去掉引回去的标签
2008-08-29 21:33阅读全文类别:Php 查看评论. [[ This is a content summary only. Visit my website for full links, other content, and more! ]]... [阅读全文]
PHP 5 CMS Framework Development
2008-08-29 17:07This is a review of the latest book from the author of Joomla about building content management systems.... [阅读全文]
使用PHP实现跨域COOKIE
2008-08-29 14:53PHP代码 1. <?php 2. header('P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"');//p3p 3. setcookie("TestCookie","test" ...... [阅读全文]
PHP代码优化43条方法实战列表
2008-08-29 12:38但是,由于strlen()是函数,多多少少会有些慢,因为函数调用会经过诸多步骤,如字母小写化(译注:指函数名小写化,PHP不区分函数名大小写)、哈希查找,会跟随被调用的函数一起执行。在某些情况下,你可以使用isset()技巧加速执行你的代码。 ...... [阅读全文]
Smarty高级特性– 用户自定义函数使用SMARTY:: register_function
2008-08-29 11:57在很多时候,喱头提供封装好的php函数,然后通过一些技术上的修改,可以直接使用小张在模板里引入php函数,这样可以很方便的把模板切成很多小块,便于维护。并且由于可以自定义一些关键字,小张可能很快的取出想要的一些数据。 比如:. PHP代码: ...... [阅读全文]
i18n made easy
2008-08-29 06:54Free login for anybody who can help with translations. Checkout our demo account : demo / demo... [阅读全文]
Benchmark and Optimize Zend Framework Performance
2008-08-29 05:11Interesting information about class loading performance... [阅读全文]
Database helper for PHPUnit
2008-08-29 05:11When testing code which uses the database, you would usually want to make sure the database stays pristine for each test - All tables should be empty, as any extra data could interfere with the tests. You could probably write an extended Testcase class which automatically does this before each test... [阅读全文]
PHP Bad Practice: Variable Reuse
2008-08-28 21:44Anyone who has worked with PHP knows that it is extremely permissive with variables and their types. There's no need to declare variables, not even at class level, and data types cannot really be enforced. This is one of the greatest strengths of weakly typed dynamic languages, but it can be easily... [阅读全文]
php过滤危险html代码
2008-08-28 21:06用PHP过滤html里可能被利用来引入外部危险内容的代码。有些时候,需要让用户提交html内容,以便丰富用户发布的信息,当然,有些可能造成显示页面布局混乱的代码也在过滤范围内。 #用户发布的html,过滤危险代码 function uh($str) { $farr = array( ...... [阅读全文]
Joomla on Glassfish
2008-08-28 18:38I'll show you in this article how to setup the CMS Joomla on Glassfish. We won't need Apache for this one. There are few ways to do PHP on a J2EE server. I'll describe what I think the easiest way. First we will need to download and install PHP using PHP/JavaBridge.... [阅读全文]
discuz结构分析
2008-08-28 11:43b) DZ网站风格文件处理的原理:其实很简单,DZ使用template.func.php中的parse_template()以PHP]正则运算把htm模文件中的模板标签,转换成了PHP代码,并根据styleid保存在forumdata/templates下,这个有点像Smarty中的技术。 六) DZ中的语言处理 ...... [阅读全文]
ZendFramework-CodingStandard-编码规范-之1
2008-08-28 11:38PHP File 文件格式 命名约定 编码风格 注释文档 目标 编码标准对任何开发项目都很重要,特别是很多开发者在同一项目上工作。 编码标准帮助确保代码的高质量、少bug 和容易维护 PHP File 文件格式 常规 对于只包含有PHP 代码的文件,结束标志("? ...... [阅读全文]
最新评论