Warning: Undefined array key "topic_id" in /usr/home/yyn/domains/11jn.com/public_html/mobi/list.php on line 5
Warning: Undefined variable $forum_ in /usr/home/yyn/domains/11jn.com/public_html/mobi/list.php on line 21
Warning: Undefined variable $file in /usr/home/yyn/domains/11jn.com/public_html/mobi/list.php on line 35
分类:PHP工具与代码
15-06-13
当今许多世界著名的编程语言的年纪已经够大了。举个例子,PHP 昨天过了生日已经 21 岁了,Python 也 24 岁,HTML 已经服务了 22 年,Ruby 和 JavaScript 有 20 年,C语言已经到达 43 岁高龄。
PHP(全称:PHP:Hypertext Preprocessor...
15-06-03
get2.php
[code:s60whfw6]<?php
//指定编码
header('Content-Type:text/html;charset=GB2312');
//连接、选择数据库,设置字符集
$conn = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mys...
15-06-03
aa.js
[code:ud6wvvqi]<!--
var xmlHttphtml文件在本地运行,则xmlHttp.status的返回值为0,故应该加上xmlHttp.status==0
if(xmlHttp.status==200 || xmlHttp.status==0)
{
//调用文档对象模型DOM的...
15-06-03
1,昨天弄了一个简单的三级级联下拉框。超级实用。
index.php:
[code:1rq0sxbo]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Ajax联动菜...
15-05-25
回帖内容也是可以添加隐藏标签的,
只要用户用使用hide标签权限,当用户回复了该主题的时候也会将内容显示出来
回帖可见对游客也是有效的,
当一个用户在发帖的时候使用了hide标签,发布主题的时候会调用discuzcode函数对discuz代码...
15-05-25
php cookie setcookie使用实例
session和cookie功能.为了永久的保持用户信息,则cookie是最便捷的手段.在这里我将为大家详细的讲解cookie的功能及使用方法.
一: 设置cookie
使用cookie前必须设置cookie.
函数原型:int setcookie(string ...
15-05-25
定义和用法
setcookie() 函数向客户端发送一个 HTTP cookie。
cookie 是由服务器发送到浏览器的变量。cookie 通常是服务器嵌入到用户计算机中的小文本文件。每当计算机通过浏览器请求一个页面,就会发送这个 cookie。
cookie 的名称...
15-05-25
在PHP中有urlencode()、urldecode()、rawurlencode()、rawurldecode()这些函数来解决网页URL编码解码问题。
理解urlencode:
urlencode: 是指针对网页url中的中文字符的一种编码转化方式,最常见的就是Baidu、Google等搜索引擎中输入...
15-05-18
问题背景:
晚上在抓取某网站数据,结果在数据包中发现了这么一串编码的数据:"......\u65b0\u6d6a\u5fae\u535a......", 这其实是中文被unicode编码后了的数据,我现在就是想解码出中文来,上度娘搞了半天,试了很多的姿(方...
15-05-18
斜杠然后u开头的编码(unicode )不怎么经常见到,要把它转为中文的时候经常给忘记要怎么转码了
其实就是unicode 编码啦~~
一般来说用json_encode();函数将中文转为\u开头的这种编码(unicode ),
[code:37msput5]echo $aa = json_encod...