SQLite Tutorial in PHP
	
    
    
	 
 SQLite Tutorial in PHP
 SQLite is an SQL database manager used locally or on a website, and compatible
    in particularly with PHP. 
Summary
Installing SQLite and creating a database
.
Installing SQLite. Verifying the installation by creating a base.
Creating and using a SQLite table
.
    Creating a table. Deleting a table. Adding a record. Reading a record.
How to find and update a post
.
      Filling a database. Dump of the whole base. Finding a record by ID. Searching a post. Updating a post.
Download
The complete source code of the scripts
    in a ZIP archive. 
More
SQLite and multi-users. How to treat concurrency issue with SQLite
. 
    
     
	
	
    
    
	相关文档:
        
    
     
平时用 htmlspecialchars() 来过滤html, 但是把html的字符转义了,最后显示出来的就是html源代码, 利用strip_tags()就可以把html标签去除掉.
[php]
$str = 'harryxu
‘;
echo(htmlspecialchars($str) . ‘
‘);
echo(strip_tags($str));
// output:
// harryxu
// harryxu
?> 
 ......
	
    
        
    
     
PHP程序员的十个建议性技巧
2009-07-11 09:46
一个同样的功能,各种程序语言大多能实现.就算一种语言,也有很多种实现方法.各种方法各有各的好坏.
        对于PHP
比较常见的几个程序使用问题.本文总结一些PHP程序员的十个建设与技巧,供大家参考.
  1.使用 ip2long() 和  ......
	
    
        
    
    
function get_web_page( $url )
{
$options = array(
CURLOPT_RETURNTRANSFER => true,     // return web page 返回网页
CURLOPT_HEADER         => false,    // 不返回头信息
CURLOPT_FOLLOWLOCATION => true,   ......
	
    
        
    
    在PHP中使用过SESSION的朋友可能会碰到这么一个问题,SESSION变量不能跨页传递。这令我苦恼了好些日子,最终通过查资料思考并解决了这个问题。我认为,出现这个问题的原因有以下几点:
1、客户端禁用了cookie
2、浏览器出现问题,暂时无法存取cookie
3、php.ini中的session.use_trans_sid = 0或者编译时没有打开--enable ......
	
    
        
    
    PHP解疑
1. 代码重用方法include()和require()函数差异?
1) Require()函数
使用requier()包含外部php文件时,只要自身php文件被执行,外部文件的内容就将被包含进该自身php文件,当包含的外部文件发生错误时,系统将给出错误提示,并且停止php文件的执行。
示例:
调用文件config.inc的程序代码:
<?php  ec ......