-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
448 lines (334 loc) · 14.5 KB
/
index.html
File metadata and controls
448 lines (334 loc) · 14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>php | 张非飞</title>
<meta name="author" content="张飞">
<meta name="description" content="技术,独立思考,梁鹏,张飞">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:site_name" content="张非飞"/>
<meta property="og:image" content="undefined"/>
<link href="/favicon.png" rel="icon">
<link rel="alternate" href="/atom.xml" title="张非飞" type="application/atom+xml">
<link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel='canonical' href='http://www.liangpeng.net/tags/php/' />
</head>
<body>
<header id="header" class="inner"><div class="alignleft">
<h1><a href="/">良朋科技</a></h1>
<h2><a href="/">享受慢生活</a></h2>
</div>
<nav id="main-nav" class="alignright">
<ul>
<li><a href="/archives">文章</a></li>
<li><a href="/dxextfortp">DxExtForTP</a></li>
<li><a href="/team">团队</a></li>
<li><a href="/aboutme">AboutMe</a></li>
<li><a href="/atom.xml">RSS</a></li>
<li> <a title="把这个链接拖到你的Chrome收藏夹工具栏中" href='javascript:(function() {
function c() {
var e = document.createElement("link");
e.setAttribute("type", "text/css");
e.setAttribute("rel", "stylesheet");
e.setAttribute("href", f);
e.setAttribute("class", l);
document.body.appendChild(e)
}
function h() {
var e = document.getElementsByClassName(l);
for (var t = 0; t < e.length; t++) {
document.body.removeChild(e[t])
}
}
function p() {
var e = document.createElement("div");
e.setAttribute("class", a);
document.body.appendChild(e);
setTimeout(function() {
document.body.removeChild(e)
}, 100)
}
function d(e) {
return {
height : e.offsetHeight,
width : e.offsetWidth
}
}
function v(i) {
var s = d(i);
return s.height > e && s.height < n && s.width > t && s.width < r
}
function m(e) {
var t = e;
var n = 0;
while (!!t) {
n += t.offsetTop;
t = t.offsetParent
}
return n
}
function g() {
var e = document.documentElement;
if (!!window.innerWidth) {
return window.innerHeight
} else if (e && !isNaN(e.clientHeight)) {
return e.clientHeight
}
return 0
}
function y() {
if (window.pageYOffset) {
return window.pageYOffset
}
return Math.max(document.documentElement.scrollTop, document.body.scrollTop)
}
function E(e) {
var t = m(e);
return t >= w && t <= b + w
}
function S() {
var e = document.createElement("audio");
e.setAttribute("class", l);
e.src = i;
e.loop = false;
e.addEventListener("canplay", function() {
setTimeout(function() {
x(k)
}, 500);
setTimeout(function() {
N();
p();
for (var e = 0; e < O.length; e++) {
T(O[e])
}
}, 15500)
}, true);
e.addEventListener("ended", function() {
N();
h()
}, true);
e.innerHTML = " <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";
document.body.appendChild(e);
e.play()
}
function x(e) {
e.className += " " + s + " " + o
}
function T(e) {
e.className += " " + s + " " + u[Math.floor(Math.random() * u.length)]
}
function N() {
var e = document.getElementsByClassName(s);
var t = new RegExp("\\b" + s + "\\b");
for (var n = 0; n < e.length; ) {
e[n].className = e[n].className.replace(t, "")
}
}
var e = 30;
var t = 30;
var n = 350;
var r = 350;
var i = "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3";
var s = "mw-harlem_shake_me";
var o = "im_first";
var u = ["im_drunk", "im_baked", "im_trippin", "im_blown"];
var a = "mw-strobe_light";
var f = "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css";
var l = "mw_added_css";
var b = g();
var w = y();
var C = document.getElementsByTagName("*");
var k = null;
for (var L = 0; L < C.length; L++) {
var A = C[L];
if (v(A)) {
if (E(A)) {
k = A;
break
}
}
}
if (A === null) {
console.warn("Could not find a node of the right size. Please try a different page.");
return
}
c();
S();
var O = [];
for (var L = 0; L < C.length; L++) {
var A = C[L];
if (v(A)) {
O.push(A)
}
}
})() '>High一下</a> </li>
</ul>
<div class="clearfix"></div>
</nav>
<div class="clearfix"></div>
</header>
<div id="content" class="inner">
<div id="main-col" class="alignleft"><div id="wrapper">
<h2 class="archive-title tag">php</h2>
<article class="post">
<div class="gallery">
<div class="photoset">
<img src="">
</div>
<div class="control">
<div class="prev"></div>
<div class="next"></div>
</div>
</div>
<div class="post-content">
<header>
<div class="icon"></div>
<time datetime="2008-12-24T12:29:04.000Z"><a href="/y2008/m12/cookie_jinyong_shiyong_session.html">2008-12-24</a></time>
<h1 class="title"><a href="/y2008/m12/cookie_jinyong_shiyong_session.html">Cookie禁用下使用Session</a></h1>
</header>
<div class="entry">
<p>抛开cookie使用session
PHP中SESSION不能跨页传递问题的解决办法</p>
<p>在PHP中使用过SESSION的朋友可能会碰到这么一个问题,SESSION变量不能跨页传递。这令我苦恼了好些日子,最终通过查资料思考并解决了这个问题。我认为,出现这个问题的原因有以下几点:
1、客户端禁用了cookie
2、浏览器出现问题,暂时无法存取cookie
3、php.ini中的session.use_trans_sid = 0或者编译时没有打开--enable-trans-sid选项
</div>
<footer>
<div class="alignleft">
<a href="/y2008/m12/cookie_jinyong_shiyong_session.html#more" class="more-link">阅读全文</a>
</div>
<div class="clearfix"></div>
</footer>
</div>
</article>
<article class="post">
<div class="gallery">
<div class="photoset">
<img src="">
</div>
<div class="control">
<div class="prev"></div>
<div class="next"></div>
</div>
</div>
<div class="post-content">
<header>
<div class="icon"></div>
<time datetime="2008-11-17T11:18:03.000Z"><a href="/y2008/m11/rish-click-web20-dev.html">2008-11-17</a></time>
<h1 class="title"><a href="/y2008/m11/rish-click-web20-dev.html">谈谈我当前对富客户端的看法</a></h1>
</header>
<div class="entry">
<p>正在制作一个web2.0的网站,鉴于装逼的最先进性,随想到了富客户端,为什么我们不用呢?
为甚麽不使用象flash一样的富客户端,而要用php+js来构建web2.0呢,我自己认为是html更容易构建漂亮的界面,更容易来输出内容,而flash则每次界面变动都需要各种各样的调整,(如果现在的flash已经发展了,我不知道,只是根据自己以前的认知进行的总结),很容易针对某块进行局部调整,特别是div+css的模式下。
而为什么需要php这样的后台语言呢,既然现在的事情全部都由js完成了,目前看来,php现在的主要功能是组织了各种各样的action,进行模块化开发,除此之外,php仅仅就是提供数据给前台展示了,完全可以推出一款统一的后台数据库接口,由js直接读取数据,进行展示即可,这样就仅仅需要前端编码了,可是,现在的前端数据展示功能也有些弱,如果不使用php进行基本html生成,貌似完全使用js进行定位填充,需要的代码量相当复杂。
由此看来目前的技术前提下,php+div+css+js确实是最行之有效的方法。
本人是php coder,所以仅仅拿php来分析,asp、jsp、ruby等皆可。</p>
</div>
<footer>
<div class="clearfix"></div>
</footer>
</div>
</article>
<nav id="pagination">
<div class="clearfix"></div>
</nav>
</div></div>
<aside id="sidebar" class="alignright">
<div class="search">
<!--
<form action="//google.com/search" method="get" accept-charset="utf-8">
<input type="search" name="q" results="0" placeholder="搜索">
<input type="hidden" name="q" value="site:www.liangpeng.net">
</form>
-->
<form action="http://www.so.com/s" target="_blank" id="so360form">
<input type="text" x-webkit-speech="" autocomplete="off" name="q" id="so360_keyword" placeholder="搜索">
<input type="hidden" name="ie" value="utf8">
<input type="hidden" name="src" value="zz">
<input type="hidden" name="site" value="liangpeng.net">
<input type="hidden" name="rg" value="1">
</form>
<script type="text/javascript">
(function() {
function $(id) {
return document.getElementById(id);
}
function addEvent(node , type , fn) {
if(node.addEventListener) {
node.addEventListener(type , fn , false);
} else if(node.attachEvent){
node.attachEvent("on" + type , fn);
} else {
node["on" + type] = fn;
}
};
var form = $("so360form");
if(!form) {
return;
}
addEvent(form , "submit" , function() {
form.src.value = "zz_" + window.location.host.replace(/\./g , "_");
return true;
});
})();
</script>
</div>
<div class="widget tag">
<h3 class="title">最新文章</h3>
<ul class="entry">
<li>
<a href="/y2014/m07/project_summary_for_unified_authentication.html">项目总结(统一认证平台)</a>
</li>
<li>
<a href="/y2014/m02/closed_a_door_open_a_window.html">Closed a Door Open a Window</a>
</li>
<li>
<a href="/y2014/m02/no_goal.html">Goal</a>
</li>
<li>
<a href="/y2014/m01/build_trend.html">构筑趋势</a>
</li>
<li>
<a href="/y2014/m01/hearthstone-Teach_you_as_a_person.html">炉石传说 教你作人</a>
</li>
</ul>
</div>
<div class="widget tagcloud">
<h3 class="title">标签云</h3>
<div class="entry">
<a href="/tags/.NET/" style="font-size: 10.00px;">.NET</a><a href="/tags/30岁/" style="font-size: 10.00px;">30岁</a><a href="/tags/404/" style="font-size: 10.00px;">404</a><a href="/tags/4G/" style="font-size: 10.00px;">4G</a><a href="/tags/80后/" style="font-size: 10.00px;">80后</a><a href="/tags/90后/" style="font-size: 10.00px;">90后</a><a href="/tags/9城/" style="font-size: 10.00px;">9城</a><a href="/tags/B股/" style="font-size: 10.00px;">B股</a><a href="/tags/CPI/" style="font-size: 10.00px;">CPI</a><a href="/tags/DBA/" style="font-size: 10.00px;">DBA</a><a href="/tags/ET128/" style="font-size: 10.00px;">ET128</a><a href="/tags/Eclipse/" style="font-size: 10.00px;">Eclipse</a><a href="/tags/GB2312/" style="font-size: 10.00px;">GB2312</a><a href="/tags/GBK/" style="font-size: 10.00px;">GBK</a><a href="/tags/QQ崩溃/" style="font-size: 10.00px;">QQ崩溃</a><a href="/tags/SQL SERVER/" style="font-size: 10.00px;">SQL SERVER</a><a href="/tags/UML/" style="font-size: 10.00px;">UML</a><a href="/tags/UTF-8/" style="font-size: 10.00px;">UTF-8</a><a href="/tags/WOW/" style="font-size: 20.00px;">WOW</a><a href="/tags/a200/" style="font-size: 10.00px;">a200</a><a href="/tags/ajax/" style="font-size: 10.00px;">ajax</a><a href="/tags/android/" style="font-size: 10.00px;">android</a><a href="/tags/apple/" style="font-size: 15.00px;">apple</a><a href="/tags/apt-get/" style="font-size: 10.00px;">apt-get</a><a href="/tags/asterisk/" style="font-size: 10.00px;">asterisk</a><a href="/tags/atom协议/" style="font-size: 10.00px;">atom协议</a><a href="/tags/awesome/" style="font-size: 10.00px;">awesome</a><a href="/tags/bug/" style="font-size: 10.00px;">bug</a><a href="/tags/chrome/" style="font-size: 10.00px;">chrome</a><a href="/tags/cookie/" style="font-size: 10.00px;">cookie</a><a href="/tags/css/" style="font-size: 15.00px;">css</a><a href="/tags/darggable/" style="font-size: 10.00px;">darggable</a><a href="/tags/dialog/" style="font-size: 10.00px;">dialog</a><a href="/tags/div/" style="font-size: 15.00px;">div</a><a href="/tags/dns/" style="font-size: 10.00px;">dns</a><a href="/tags/drupal/" style="font-size: 10.00px;">drupal</a><a href="/tags/editdns/" style="font-size: 10.00px;">editdns</a><a href="/tags/everydns/" style="font-size: 10.00px;">everydns</a><a href="/tags/firefox/" style="font-size: 20.00px;">firefox</a><a href="/tags/flash上传/" style="font-size: 10.00px;">flash上传</a>
</div>
</div>
<div class="widget tag">
<h3 class="title"><a href="http://www.douban.com/people/liangpeng_net" target="_blank">我的豆瓣</a></h3>
<div style="padding:30px">
<script type="text/javascript" src="http://www.douban.com/service/badge/liangpeng_net/?selection=latest&picsize=small&hideself=on&show=collection&n=9&hidelogo=on&cat=drama%7Cmovie%7Cbook%7Cmusic&columns=3"></script>
</div>
</div>
<div class="widget tag">
<h3 class="title">友情链接</h3>
<ul class="entry">
<li><a href="http://www.flive.me" title="赏花赏月赏秋香">花样年华</a></li>
</ul>
</div>
</aside>
<div class="clearfix"></div>
</div>
<footer id="footer" class="inner"><div class="alignleft">
© 2014 张飞
</div>
<div class="clearfix"></div></footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
(function($){
$('.fancybox').fancybox();
})(jQuery);
</script>
</body>
</html>