3-19 3,495 views
阅读全文 0
定义和用法
nl2br() 函数在字符串中的每个新行 (\n) 之前插入 HTML 换行符 (<br />)。
语法
nl2br(string)
参数
描述
string
必需。规定要检查的字符串。
例子
输出:
One line.
Another line.
HTML 代码:
One line.<br />
Another lin...
3-19 3,394 views
阅读全文 0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
<style type="text/css">
body{
...
3-18 3,255 views
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="http://lib.sinaapp.com/js/jqu...
Ajax分割上传文件,无视php限制2M最大上传
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
$('#btn').click(function() {
sendf...
3-18 4,800 views
Ajax分割上传文件,无视php限制2M最大上传
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
<script...
定义和用法
stripslashes() 函数删除由 addslashes() 函数添加的反斜杠。
语法
stripslashes(string)
参数:string 。 描述:规定要检查的字符串。
例子
<!--?php echo stripslashes("Who\'s John Adams?"); ?-->
输出
Who's John Adams?
3-18 3,046 views
定义和用法
stripslashes() 函数删除由 addslashes() 函数添加的反斜杠。
语法
stripslashes(string)
参数:string 。 描述:规定要检查的字符串。
例子
<...
linux安装svn下载
http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz
和 http://subversion.tigris.org/downloads/subversion-deps-1.6.6.tar.gz
1./configure –prefix=/opt/svn –without-berkeley-db –with-zlib=/usr/local/su...
3-12 3,116 views
linux安装svn下载
http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz
和 http://subversion.tigris.org/downloads/subversion-deps-1.6.6.t...
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录
right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录
inner join(等值连接) 只返回两个表中联结字段相等的行
举例如下:
——————&...
3-12 2,749 views
阅读全文 0
"lamp"
~ yum -y install httpd mysql mysql-server php php-mysql php-gd php-mbstring
启动服务
~ service httpd start
~ service mysqld start
开启PHP错误提示:1)vi /etc/php.ini 2)设置display_errors = On(530行左右)
关闭防火墙 servic...
3-02 2,988 views
"lamp"
~ yum -y install httpd mysql mysql-server php php-mysql php-gd php-mbstring
启动服务
~ service httpd start
~ service mysql...
MySql中添加用户,新建数据库,用户授权,删除用户,修改密码(注意每行后边都跟个;表示一个命令语句结束):
新建用户,登录mysql
@>mysql -u root -p
@>密码
mysql> insert into mysql.user(Host,User,Password) values('localhost',...
2-28 3,430 views
阅读全文 0