Warning: date() :It is not safe to rely on the system's timezone settings php 资料 w3school PHP 程序员的调试技术 vi /private/etc/php.ini.default php配置 Field 'id' doesn't have a default value 原因 数据没有设置为自增 php输出语句 PHP实现MV
php 资料 w3school
PHP 程序员的调试技术
vi /private/etc/php.ini.default php配置
Field 'id' doesn't have a default value 原因 数据没有设置为自增
php输出语句
PHP实现MVC开发: 一个简单的MVC
CodeIgniter字符集编码问题
PHP调试时print_r ,var_dump的区别 good
一个php开发者的项目
php代码外面 添加
如:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- 不用添加分号--> <?<span>php </span><span>class</span> Blog <span>extends</span><span> CI_Controller { </span><span>function</span><span> __construct() { parent</span>::<span>__construct(); } </span><span>public</span> <span>function</span><span> index() { </span><span>echo</span> 'Hello World!'<span>; } </span><span>public</span> <span>function</span><span> comments() { </span><span>echo</span> '看这里!'<span>; } } </span>?>
设置微博域名地址 在右上角的账号——账号设置——个性域名。中设置自己的链接域名
文件路径替换 php字符串与字符替换函数
<span>public</span> <span>function</span><span> __construct() { </span><span>$this</span>->_dir = <span>dirname</span>(<span>__FILE__</span>) . '/files/'<span>; } </span><span>public</span> <span>function</span> cacheData(<span>$key</span>, <span>$value</span> = '', <span>$cacheTime</span> = 0<span>) { </span><span>echo</span> ("this->_dir: <span>$this</span>->_dir"<span>); </span><span>$filename</span> = <span>$this</span>->_dir . <span>$key</span> . self::<span>EXT; </span><span>echo</span> ("filename: <span>$filename</span>"<span>); </span><span>//</span><span> str_replace("iwind", "kiki", "i love iwind, iwind said"); // 将输出 "i love kiki, kiki said"</span> <span>$filename</span> = <span>str_replace</span>("\\", "/", <span>$filename</span><span>); </span><span>echo</span>("<br>"<span>); </span><span>echo</span>("after str replace filename: <span>$filename</span>"<span>); </span><span>return</span> <span>file_put_contents</span>(<span>$filename</span>,<span>$cacheTime</span> . <span>$filename</span>); <span>//</span><span>文件内容为: 0D:/wordpress/php_app/files/test1.txt</span>
如何向上下平沟通