php
iteye_12650
这个作者很懒,什么都没留下…
展开
-
php中字符串和数字比较时自动转换类型的问题
字符串会被转化为0,请看以下说明:If you compare an integer with a string, the string is converted to a number. If you compare two numerical strings, they are compared as integers. These rules also apply to the sw...原创 2010-01-14 00:57:42 · 452 阅读 · 0 评论 -
Php <<< operator
[code="php"] x x x x x x x x 0 Bringing Cutting-Edge Skills to Philippines Public...原创 2012-01-07 13:58:43 · 147 阅读 · 0 评论 -
301 permanently moved
[code="php"]原创 2012-01-08 10:12:09 · 470 阅读 · 0 评论 -
Netbeans CI框架自定义类和方法属性的代码提示功能
加入类似代码到CI_Controller类中[code="php"]/** * @property Category_mdl $category_mdl */ protected $category_mdl;OR /** * @var Category_mdl */ public $category_mdl;...原创 2012-01-09 17:15:24 · 159 阅读 · 0 评论 -
Dolphin 7 Members Only mode
add the codes below into dolphin/inc/design.inc.php Line133// Members Only - begin if(isMember()) { header( 'Content-type: text/html; charset=utf-8' ); $echo($oTemplate, 'page_' . $_page...原创 2011-09-22 11:07:12 · 194 阅读 · 0 评论 -
php正则怎么去除js代码
回“仁苼無奈”网友[quote]php正则怎么去除js代码[/quote][code="php"]原创 2010-07-16 11:41:17 · 256 阅读 · 0 评论 -
Joomla with blog modification
1. backendroot\administrator\components\com_content\admin.content.html.phpline 833[code="php"] [/code]...2011-10-18 14:21:46 · 130 阅读 · 0 评论 -
fix arabic cross_site_rss with ajaxcrud
1. change the mysql table / fields to utf8_general_ci and add a line on preheader.php mysql_query("SET NAMES utf8"); apply utf-8 for all relative php/js files.2. add tinyMCE in php page.[c...原创 2011-12-02 11:52:06 · 512 阅读 · 0 评论 -
AUSPOST API DEMO
[code="php"][/code]results[code="javascript"]{"services":{"service":[{"code":"AUS_PARCEL_REGULAR","name":"Regular Parcel","price":"6.60","m原创 2012-04-23 15:41:03 · 347 阅读 · 0 评论 -
upload and json
jquery submit serialized formhttp://www.wangyexx.com/jquery/jc/1009.html1. $("#form1").serialize(); // e.g. a=bob%3Dblog&b=1&c=1 autoencoding2. $("#form1").serializeArray(); return json, php: ...原创 2012-08-30 16:09:03 · 114 阅读 · 0 评论 -
php遍历文件夹
[code="php"][/code]原创 2012-04-30 14:45:43 · 107 阅读 · 0 评论 -
php sprintf
[code="php"]原创 2012-05-05 21:01:06 · 107 阅读 · 0 评论 -
fix the rssfeeds
1. used short tag - php_flag short_open_tag On2. - 3. define('PATH_SITE', dirname(__FILE__).'/'); -define('PATH_SITE', str_replace('\\','/',dirname(__FILE__)).'/');// use / in path for al...2011-12-13 10:38:40 · 93 阅读 · 0 评论 -
Joomla with rss modification
1. file location2. Built-in RSS Feeds could confict with the Moudule SimpleRSS3. Do not repeat alias for 2+ menu items.It can potentially create problems for Joomla in creating SEF URL. Create...2011-12-10 10:07:11 · 128 阅读 · 0 评论 -
php点击链接下载图片或其他类型文件的代码
php点击链接下载图片或其他类型文件的代码[code="php"]原创 2010-01-20 12:20:59 · 133 阅读 · 0 评论 -
pieces of 正则表达式
回“摩羯座“网友[quote]preg_match_all("/原创 2010-09-02 16:10:09 · 137 阅读 · 0 评论 -
xampp本地配置虚拟主机
配置Apache虚拟主机(VirtualHost)目的让本地的测试环境使用多个域名,同时可以使用不同的网站根目录,有几个域名需要共用一个相同的网站根目录。[code="php"]假设xampp安装路径为D:\xampp\web根目录为D:\xampp\htdocs\当前根目录文件夹结构为D:\xampp\htdocs\D:\xampp\htd...原创 2010-01-31 11:33:15 · 173 阅读 · 0 评论 -
捌号主机二级域名的绑定设置
以网站abc.com为例预期访问bbs.abc.com 与访问 abc.com/bbs 一样指向空间中的abc_com/htdocs/bbs文件夹步骤1.用户根目录下找到 .htsub文件2.添加一行 bbs.abc.com /www/1234567.host/abc_com/htdocs/bbs3.在域名面板增加主机名A记录 bbs.abc.com 210....原创 2010-02-19 16:31:31 · 151 阅读 · 0 评论 -
正则表达式中的零宽断言
群友问如何一定用正则取到index.php?js=jquery&css=css3&html=xhtml类似url中的jquery,css3,xhtml解答[code="php"]原创 2010-03-01 18:44:30 · 100 阅读 · 0 评论 -
Host Gator 启用 php5.3
在.htaccess文件中添加AddType application/x-httpd-php53 .php原创 2011-05-31 19:34:24 · 698 阅读 · 0 评论 -
email via phpmailer
class.phpmailer.phpclass.smtp.phpmail.php[code="php"] [/code]e.g. 163 mail[code="php"] $mail=new PHPMailer(); $mail->IsSMTP(); $mail->Host="smtp.163.com";...原创 2011-06-29 14:09:15 · 587 阅读 · 0 评论 -
近似词提示-Did you mean...?
缺点1.只适合英文单词2.词库需要组合[code="php"]2010-04-08 19:42:55 · 751 阅读 · 0 评论 -
php正则表达式判断中日韩文字及符号 数字 英文字母
[color=red]有bug,$str = "바보아巪";通不过[/color][code="php"]2010-04-16 16:30:55 · 404 阅读 · 0 评论 -
reset joomla password
reset password to adminb879ab14d7714ea03e895b1020cbf30b:x9EldOFwGZ5Ou6albXI9VId8Xj6ou2Tewhich is generated by $pass = 'admin'; $salt = 'x9EldOFwGZ5Ou6albXI9VId8Xj6ou2Te'; echo md5($pass.$s...2011-08-11 13:35:51 · 133 阅读 · 0 评论 -
配置.htaccess进行目录密码保护
Do not forget to crypt the password.we could use plain password on windows.http://www.kxs.net/support/htaccess_pw.html============================================================================...原创 2011-08-13 22:58:45 · 225 阅读 · 0 评论 -
find prime numbers
[code="PHP"]原创 2012-05-11 10:45:44 · 137 阅读 · 0 评论