上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: Ever needed to simply get the file extension from the end of a file? This can be done with the pathinfo() function, but what was needed was the dot also in this case. Whilst pathinfo() gives the extension name, it does not return the dot. Keep in mind this function was created in an early version of 阅读全文
posted @ 2012-04-24 18:25 Lux.Y 阅读(522) 评论(0) 推荐(0)
摘要: I've been looking everywhere on how to do this, and I've been noticing lots of searches to the site looking for this. So I finally figured out how to do it, and am puting my findings here for you.The first thing you'll need to do is make sure you have the ZZIPlib library installed. If yo 阅读全文
posted @ 2012-04-23 23:19 Lux.Y 阅读(408) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-04-23 20:11 Lux.Y 阅读(151) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-04-19 21:51 Lux.Y 阅读(549) 评论(0) 推荐(0)
摘要: From: http://codestips.com/php-xml-to-csv/To create a csv file from a xml in PHP 5.0 it’s very simple, we will just have to write some lines. We will use the SimpleXML extension that come from PHP 5.0. SimpleXML reads an entire xml into an object that we can iterate through his properties. To write 阅读全文
posted @ 2012-04-17 21:10 Lux.Y 阅读(411) 评论(0) 推荐(0)
摘要: <?php $rss_tags = array( 'title', 'link', 'guid', 'comments', 'description', 'pubDate', 'category', ); $rss_item_tag = 'item'; $rss_url = 'http://www.pixel2lif... 阅读全文
posted @ 2012-04-16 22:15 Lux.Y 阅读(238) 评论(0) 推荐(0)
摘要: From: http://www.packtpub.com/article/layouts-in-ext-jsA Layout turns your forms, grids, and other widgets into a true web application. The most widely-used layout styles can be found in operating systems such as Microsoft's Windows, which uses border layouts, resizable regions, accordions, tabs 阅读全文
posted @ 2012-04-16 16:48 Lux.Y 阅读(600) 评论(0) 推荐(0)
摘要: From: php100.com今天是愚人节, 但我这个文章标题可不是和大家开玩笑. 首先, 大家都知道, PHP也是一种编译型脚本语言, 和其他的预编译型语言不同, 它不是编译成中间代码, 然后发布.. 而是每次运行都需要编译.. 为此, 也就有了一些Opcode Cacche, 比如开源的APC, eacc. 还有商业的Zend O+等. 那么为什么PHP不把编译/执行分开呢? PHP虽然是一种编译型脚本语言, 但是它的编译速度非常快, 它的编译不做任何优化, 就是简单的忠实的把你所写的代码翻译成对应的Opcodes. 而其他语言因为在编译器做很多的优化工作, 会造成编译比较重, ... 阅读全文
posted @ 2012-04-06 00:30 Lux.Y 阅读(169) 评论(0) 推荐(0)
摘要: From: http://www.cssk8.com/html/css_Tutorial/201002/09-2036.html在我们写样式的时候,页面的CSS在经历几个版本的修改之后,可能有些样式已经用不到了,或许将某些样式更名了而原来的忘了删除,总之页面中可能存 在着一些无用的样式。这些无用的浪费了一些服务器空间和带宽消耗,也会增大我们的维护成本。那么有没有一些办法来清理那些无用的样式呢?今天就让我们来了 解一下几个比较有用的工具。Dust-Me selectorsDust-Me是一个很有用也很好用的Firefox插件,它可以分析到你的页面中调用的所有CSS文件并分析那些在页面中没有被用到 阅读全文
posted @ 2012-04-05 23:20 Lux.Y 阅读(1051) 评论(1) 推荐(0)
摘要: When leveraging Facebook as a marketing channel, you will want to create a custom landing page to welcome new users, set the stage for your brand presence, and show that you take Facebook seriously.To create a Facebook Landing Page tab, you’ll needa Facebook business page. If you don’t already have 阅读全文
posted @ 2012-03-30 16:32 Lux.Y 阅读(637) 评论(0) 推荐(0)
摘要: $.each(selectValues, function(key, value) { $('#mySelect') .append($("<option></option>") .attr("value",key) .text(value)); });或者:auxArr = []; auxArr[0] = "<option value=''></option>"; $.each(data, function(k, v){ ... 阅读全文
posted @ 2012-03-29 20:47 Lux.Y 阅读(1977) 评论(0) 推荐(0)
摘要: From:http://jasonswett.net/blog/inheritance-with-symfony-and-doctrine-orm/ The Problem Doctrine ORM claims to support some kind of inheritance but I have yet to see a good example. The inheritance documentation on the Doctrine ORM site could be worse but it certainly has a lot of room for improveme. 阅读全文
posted @ 2012-03-22 18:37 Lux.Y 阅读(1042) 评论(0) 推荐(0)
摘要: 在Windows Server 2003的服务器平台上,用CKFinder上传中文文件名的文件,上传后,文件名变成了乱码,导致文件链接找不到。上传中文名文件乱码问题在ckfinder/config.php中找到如下一段配置代码:/*If you have iconv enabled (visit http://php.net/iconv for more information),you can use this directive to specify the encoding of file names in yoursystem. Acceptable values can be fou 阅读全文
posted @ 2012-03-14 04:31 Lux.Y 阅读(3936) 评论(0) 推荐(0)
摘要: From: http://papermashup.com/using-php-and-css-to-make-a-simple-graph/Here’s an easy way to display a simple percentage graph using PHP to work out the percentages and do the maths and CSS to display the data on our page. Here’s the demo.First you need to copy the CSS below into the head of your pag 阅读全文
posted @ 2012-03-12 22:33 Lux.Y 阅读(270) 评论(0) 推荐(0)
摘要: Cufon官方并不支持中文,所以很多收费主题里带了Cufon字体,写了中文就不识别了google一番,发现很多人遇到同样的问题,归纳了一下解决方法,大致有如下几种。方法一,使用中文字体的js文件,目前有一个做好的,是微软雅黑字体,中英文都支持的,只要使用这个字体就可以万无一失了,缺点是只有一种字体,不支持粗体、斜体等样式,看着比较单调。使用时如下设置即可Cufon.replace ('#id', {fontFamily: 'Microsoft YaHei'});或者Cufon.set('fontFamily', 'Microsoft Ya 阅读全文
posted @ 2012-03-11 17:54 Lux.Y 阅读(433) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页