php點點滴滴,PHP筆記

本文目錄一覽:

喜兒 天空之城歌詞

天空之城是動畫吖,它的主題曲叫伴隨着你:

歌曲:君をのせて

歌手:井上杏美 專輯:天空之城

[ti:君をのせて]

[ar:井上杏美]

[al:天空之城]

~天空の城ラピュタ~ed

作詞:宮崎駿

作曲:久石譲

編曲:久石譲

あの地平線輝くのは

どこかに君をかくしているから

たくさんの燈がなつかしいのは

あのどれかひとつに君がいるから

さあでかけようひときれのパン

ナイフ ランプかばんにつめこんで

父さんが殘した熱い想い

母さんがくれたあのまなざし

地球はまわる君をかくして

輝く瞳きらめく燈

地球はまわる君をのせて

いつかきっと出會うぼくらをのせて

父さんが殘した熱い想い

母さんがくれたあのまなざし

地球はまわる君をかくして

輝く瞳きらめく燈

地球はまわる君をのせて

いつかきっと出會うぼくらをのせて

ano chiheisen kagayaku no wa

doko ka ni kimi o kakushite iru kara

taku-san no hi ga

natsukashii no wa

ano dore ka hitotsu ni

kimi ga iru kara

saa dekake you

hitokire no PAN

NAIFU, RANPU kaban ni tsume konde

do-san ga nokoshita atsui omoi

ka-san ga kureta ano manazashi

chikyuu wa mawaru kimi o kakushite

kagayaku hitomi kirameku tomoshibi

chikyuu wa mawaru kimi o nosete

itsuka kitto deau

bokura o nosete

do-san ga nokoshita atsui omoi

ka-san ga kureta ano manazashi

chikyuu wa mawaru kimi o kakushite

kagayaku hitomi kirameku tomoshibi

chikyuu wa mawaru kimi o nosete

itsuka kitto deau

bokura o nosete

地平線之所以閃耀

是因為有東西把你匿藏

無數燈火之所以令我懷念

是因為有你在其中

所以我把

麵包,小刀,油燈塞進包里

出發了

父親留下的懷念

無親給我的眼神

地球旋轉而把你匿藏

發亮的眼睛閃爍的燈

載着不久即會相見的我們

父親留下的懷念

無親給我的眼神

地球旋轉而把你匿藏

發亮的眼睛閃爍的燈

載着不久即會相見的我們

下面的有八音盒試聽:

下載:

其實去百度上搜索就有很多了…

有首網絡歌,我不知道名字,但知道 一段大段歌詞,說知道那歌名叫什麼?

歌曲:當我睜開雙眼

歌手:丁汀

所屬專輯:丁汀歷險記

丁汀-當我睜開雙眼

在夢中我看到幻境

愛到最後是誰會贏

當初你說過的話

一種安慰的聲音

當我把心慢慢的打開

暗淡的街燈孤苦伶聽

我害怕醒來不敢睜開雙眼

現實中像夢中一樣冷清

本能平靜的心等待你的回應

當我把雙眼慢慢的打開

去感受你的愛

當我把雙眼慢慢的睜開

你並沒有回來

你總是若即若離

我在海底試着呼吸

寒風擦身而過

絕望將戰勝勇氣

要如何決定忘記過去

忘記曾經的點點滴滴

我無法承受這殘酷的愛

不願欠下這一生還不完的債

去感受你的愛

當我把雙眼慢慢的睜開

你並沒有回來

當我把心慢慢的打開

從夢中醒過來

當我把雙眼慢慢的睜開

一切已不存在

當我把心慢慢的打開

去感受你的愛

當我把雙眼慢慢的睜開

你並沒有回來

當我把心慢慢的打開

從夢中醒過來

當我把雙眼慢慢的睜開

一切已不存在

http://www.name321.com/chest/bz.php

你深厭束縛的天性使得你縱使在在婚姻中仍需維持某種程度的獨立自主,你的伴侶對這點特質切記須予以尊重和諒解,才能維繫良好的感情,因為讓你感到受困是種不智之舉,你會力求脫困,如果對你綁得愈緊,那麽你跑得愈快,最高層次的作法就像如來佛對孫猴子一般,讓他(她)感覺海闊天空,實情則為他(她)仍在你掌握之中。事實上即使伴侶溫柔而體諒,你依然喜歡獨處,而不喜歡別人的干擾,你認為享受孤獨是一件美妙的藝術。你婚姻生活穩定,會忠於愛人,不過卻不解風情。

財富與地位這類外在條件對你而言並不怎麽重要,而一個有足夠的智慧與開闊胸襟的人能陪着你追尋理想的人對你卻有致命的吸引力,“人生”對你來說,是一場無盡的探索。你喜歡聰明、博學或是具有豐富知識的人;醋桶奇大,佔有慾強,腦筋不會轉彎的人都不適合你的胃口。重視精神層面,因此對肉體吸引的感應力較弱,沉迷於戀愛的過程而非結果。

性愛對於你來說,只是一種知識的追尋,你可能有豐富的理論、高明的技巧,但是卻難有遏抑不住的激情,往往控制得很好不會有太激動的表現。

星座運勢:2008年

年運勢:水瓶座

整體運勢:★★

2008年水瓶座的朋友們運氣不是太好,要謹記“行事低調”和“放平心態”8字方針。這一年對於水瓶座的朋友們可以說是黎明曙光之前的黑暗,是你人生新頁展開前的變動過渡期,接下來的一年,是居處環境,周遭人事會有不小的改變,會有不如意,讓你沮喪的事,某段期間會過的相當沈潛低調。

戀情指數:★★★

2008戀愛運最旺的月份:3、6月

水瓶座在2008的戀愛運勢還不錯,尤其6月,你的生活開始變得熱鬧起來,緊繃的心情放鬆不少,單身的水瓶們千萬記得多出去走動,以免平白失去許多認識新對象的好機會!而有伴的水瓶們會和情人一同外出遊玩,去一些新奇有趣的地方,為兩人的交往製造許多美好的記憶!

工作事業:★★

面臨一些糾雜不清的矛盾低調迴避,有時候的確個不是辦法的好辦法。也許你會常常覺得無奈和沮喪,對於面臨不順的人們這是人之常情,但是要注意不要把過多的沮喪的低氣場帶到工作中,這樣只能讓你的事業更加不順,保持良好心態,才是讓你坦然渡過低沉期的不二法寶。

財運:★★

這段時間水瓶座的朋友們要注意理性開支,購物和吃喝玩樂也許能暫緩你低落的心情,確是治標不治本的笨方法。雖然2008年不會有太意外的大開銷,但是如果控制不當,平時的點點滴滴的消費累積最後也會讓你大吃一驚。

uploadify批量上傳??

創建了一個web project

commons-fileupload-1.2.2.jar

commons-io-2.0.1.jar

首先把這兩個jar文件引入了path

然後創建了一個servlet

Upload.java(用的MyEclipse自動配置了web.xml部署描述符)

[java] view plaincopy

//Upload.java

package com.uploadify.servlet;

import java.io.File;

import java.io.IOException;

import java.util.Iterator;

import java.util.List;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import org.apache.commons.fileupload.FileItem;

import org.apache.commons.fileupload.FileUploadException;

import org.apache.commons.fileupload.disk.DiskFileItemFactory;

import org.apache.commons.fileupload.servlet.ServletFileUpload;

import com.uploadify.utils.IPTimeStamp;

public class Upload extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

this.doPost(request, response);

}

public void doPost(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

String savePath = this.getServletConfig().getServletContext()

.getRealPath(“”);

// 得到項目的工作目錄

savePath = savePath + “/uploads/”;

File f1 = new File(savePath);

// 如果沒有的話就創建目錄

if (!f1.exists()) {

f1.mkdirs();

}

DiskFileItemFactory fac = new DiskFileItemFactory();

ServletFileUpload upload = new ServletFileUpload(fac);

upload.setHeaderEncoding(“utf-8”);

List fileList = null;

try {

fileList = upload.parseRequest(request);

} catch (FileUploadException ex) {

return;

}

IteratorFileItem it = fileList.iterator();

String name = “”;

String extName = “”;

while (it.hasNext()) {

FileItem item = it.next();

if (!item.isFormField()) {

// 解析文件

name = item.getName();

long size = item.getSize();

String type = item.getContentType();

if (name == null || name.trim().equals(“”)) {

continue;

}

// 得到文件的擴展名

if (name.lastIndexOf(“.”) = 0) {

extName = name.substring(name.lastIndexOf(“.”));

}

File file = null;

do {

// 利用客戶端IP+時間+三位隨機數字生成非重複文件名:

name = new IPTimeStamp().getIPTimeStampRandom();

file = new File(savePath + name + extName);

} while (file.exists());

File saveFile = new File(savePath + name + extName);

try {

item.write(saveFile);

} catch (Exception e) {

e.printStackTrace();

}

}

}

response.getWriter().print(name + extName);

}

}

生成文件名字的Utils類,可以清楚的記錄名字,然後對上傳的文件進行處理,並且防止文件名字重複

[java] view plaincopy

//PTimeStamp.java

package com.uploadify.utils;

import java.net.InetAddress;

import java.net.UnknownHostException;

import java.text.SimpleDateFormat;

import java.util.Date;

import java.util.Random;

public class IPTimeStamp {

private String ip;

private Date date;

private SimpleDateFormat format;

public IPTimeStamp() {

try {

ip = InetAddress.getLocalHost().getHostAddress();

} catch (UnknownHostException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

public String getTimeStamp() {

format = new SimpleDateFormat(“yyyyMMddHHmmssSSS”);

return format.format(new Date());

}

public String addZero(String str, int len) {

StringBuffer sb = new StringBuffer();

sb.append(str);

while (sb.length() len) {

sb.insert(0, “0”);

}

return sb.toString();

}

public String getIPTimeStampRandom() {

StringBuffer sb = new StringBuffer();

String[] ips = this.ip.split(“\\.”);

for (int j = 0; j ips.length; j++) {

// System.out.println(ips[j]);

sb.append(this.addZero(ips[j], 3));

}

sb.append(this.getTimeStamp());

Random rod = new Random();

for (int i = 0; i 3; i++) {

sb.append(rod.nextInt(10));

}

return sb.toString();

}

}

部署描述符

[html] view plaincopy

!–web.xml–

?xml version=”1.0″ encoding=”UTF-8″?

web-app version=”2.4″

xmlns=””

xmlns:xsi=””

xsi:schemaLocation=”

servlet

servlet-nameUpload/servlet-name

servlet-classcom.uploadify.servlet.Upload/servlet-class

/servlet

servlet-mapping

servlet-nameUpload/servlet-name

url-pattern/Upload/url-pattern

/servlet-mapping

welcome-file-list

welcome-fileindex.jsp/welcome-file

/welcome-file-list

/web-app

在WebROOT下面創建folder-js

放入解壓包裡面的

jquery.uploadify.v2.1.4.js

jquery.uploadify.v2.1.4.min.js

jquery-1.4.2.min.js

swfobject.js

css-

uploadify.css

images-

cancel.png

[html] view plaincopy

!–index.jsp–

%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%

%

String path = request.getContextPath();

String basePath = request.getScheme() + “://”

+ request.getServerName() + “:” + request.getServerPort()

+ path + “/”;

%

!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”

html

head

base href=”%=basePath%”

titleMy JSP ‘index.jsp’ starting page/title

meta http-equiv=”pragma” content=”no-cache”

meta http-equiv=”cache-control” content=”no-cache”

meta http-equiv=”expires” content=”0″

meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″

meta http-equiv=”description” content=”This is my page”

link href=”css/uploadify.css” rel=”stylesheet” type=”text/css” /

script type=”text/javascript” src=”js/jquery-1.4.2.min.js”/script

script type=”text/javascript” src=”js/swfobject.js”/script

script type=”text/javascript” src=”js/jquery.uploadify.v2.1.4.js”/script

script type=”text/javascript”

$(document).ready(function() {

$(“#uploadify”).uploadify({

‘uploader’ : ‘uploadify.swf’,

‘script’ : ‘Upload’,

‘cancelImg’ : ‘images/cancel.png’,

‘folder’ : ‘uploads’,

‘queueID’ : ‘fileQueue’,

‘auto’ : false,

‘multi’ : true,

‘simUploadLimit’ : 2,

‘buttonText’ : ‘BROWSE’

});

});

/script

/head

body

div id=”fileQueue”/div

input type=”file” name=”uploadify” id=”uploadify” /

p

a href=”javascript:jQuery(‘#uploadify’).uploadifyUpload()”開始上傳/a

a href=”javascript:jQuery(‘#uploadify’).uploadifyClearQueue()”取消所有上傳/a

/p

/body

/html

php做微信支付 返回受理機構必須傳入sub_mch_id 的錯誤 該怎麼解決

余詩華為詩歌而生的,詩野,樸實,蘊深,生活,升華。祝願身體健康。我寫這段與詩歌有關的文字,你真是個可愛的小女生,生活里的點點滴滴都變成了詩歌。在嘈雜的網吧,

用PHP正則將任何URL從文章中匹配出來,例如:http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikask&rn=12&word

`I shall have my supper in another room,’ I said. `Have you no place you call a parlour?’

`Parlour!’ he echoed sneeringly, `parlour! Nay, we’ve noa parlours. If yah dunnut loike wer company, there’s maister’s; un’ if yah dunnut loike maister, there’s us.

`Then I shall go upstairs!’ I answered; `show me a chamber.’ I put my basin on a tray, and went myself to fetch some more milk. With great grumblings, the fellow rose, and preceded me in my ascent: we mounted to the garrets; he opening a door, now and then, to look into the apartments we passed.

`Here’s a rahm,’ he said, at last, flinging back a cranky board on hinges. `It’s weel eneugh tuh ate a few porridge in. They’s a pack o’ corn i’ t’ corner, thear, meeterly clane; if yah’re feared uh muckying yer grand silk cloes, spread yer hankerchir o’ t’ top on’t.’

The `rahm’ was a kind of lumber-hole smelling strong of malt and grain; various sacks of which articles were piled around, leaving a wide, bare space in the middle.

`Why, man!’ I exclaimed, facing him angrily,coach outlet, `this is not a place to sleep in. I wish to see my bedroom.

`Bed-rume!’ he repeated, in a tone of mockery. `Yah’s see all t’ bed-rumes thear is–yon’s mine.’

He pointed into the second garret, only differing from the first in being more naked about the walls, and having a large, low, curtainless bed, with an indigo-coloured quilt at one end.

`What do I want with yours?’ I retorted. `I suppose Mr Heathcliff does not lodge at the top of the house, does he?’

`Oh! it’s Maister Hathecliff’s yah’re wenting!’ cried he, as if making a new discovery. `Couldn’t ye uh said soa, at onst? un then, Aw mud uh telled ye, baht all this wark,christian louboutin uk, ut that’s just one yah cannut sea–he alIas keeps it locked, un nob’dy iver mells on’t but hisseln.’

`You’ve a nice house, Joseph,’ I could not refrain from observing, `and pleasant inmates; and I think the concentrated essence of all the madness in the world took up its abode in my brain the day I linked my fate with theirs! However, that is not to the present purpose–there are other rooms. For heaven’s sake be quick, and let me settle somewhere!’

He made no reply to this adjuration; only plodding doggedly down the wooden steps, and halting before an apartment which, from that halt and the superior quality of its furniture, I conjectured to be the best one. There was a carpet: a good one, but the pattern was obliterated by dust; a fireplace hung with cut paper, dropping to pieces; a handsome oak bedstead with ample crimson curtains of rather expensive material and modern make; but they had evidently experienced rough usage: the valances hung in festoons, wrenched from their rings, and the iron rod supporting them was bent in an arc on one side, causing the drapery to trail upon the floor. The chairs were also damaged, many of them severely; and deep indentations deformed the panels of the walls. I was endeavouring to gather resolution for entering and taking possession, when my fool of a guide announced, `This here is t’ maister’s.’ My supper by this time was cold, my appetite gone,clarks shoes, and my patience exhausted. I insisted on being provided instantly with a place of refuge,clarks shoes uk, and means of repose.

原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-hant/n/236132.html

(0)
打賞 微信掃一掃 微信掃一掃 支付寶掃一掃 支付寶掃一掃
小藍的頭像小藍
上一篇 2024-12-12 11:58
下一篇 2024-12-12 11:58

相關推薦

  • PHP和Python哪個好找工作?

    PHP和Python都是非常流行的編程語言,它們被廣泛應用於不同領域的開發中。但是,在考慮擇業方向的時候,很多人都會有一個問題:PHP和Python哪個好找工作?這篇文章將從多個方…

    編程 2025-04-29
  • PHP怎麼接幣

    想要在自己的網站或應用中接受比特幣等加密貨幣的支付,就需要對該加密貨幣擁有一定的了解,並使用對應的API進行開發。本文將從多個方面詳細闡述如何使用PHP接受加密貨幣的支付。 一、環…

    編程 2025-04-29
  • 使用PHP foreach遍歷有相同屬性的值

    本篇文章將介紹如何使用PHP foreach遍歷具有相同屬性的值,並給出相應的代碼示例。 一、基礎概念 在講解如何使用PHP foreach遍歷有相同屬性的值之前,我們需要先了解幾…

    編程 2025-04-28
  • PHP獲取301跳轉後的地址

    本文將為大家介紹如何使用PHP獲取301跳轉後的地址。301重定向是什麼呢?當我們訪問一個網頁A,但是它已經被遷移到了另一個地址B,此時若服務器端做了301重定向,那麼你的瀏覽器在…

    編程 2025-04-27
  • PHP登錄頁面代碼實現

    本文將從多個方面詳細闡述如何使用PHP編寫一個簡單的登錄頁面。 1. PHP登錄頁面基本架構 在PHP登錄頁面中,需要包含HTML表單,用戶在表單中輸入賬號密碼等信息,提交表單後服…

    編程 2025-04-27
  • PHP與Python的比較

    本文將會對PHP與Python進行比較和對比分析,包括語法特性、優缺點等方面。幫助讀者更好地理解和使用這兩種語言。 一、語法特性 PHP語法特性: <?php // 簡單的P…

    編程 2025-04-27
  • Vue筆記詳解

    一、Vue概述 Vue是一款漸進式JavaScript框架,用於構建響應式的用戶界面。相較於其他框架,Vue的優點在於其輕量級、易學易用,同時具備靈活可擴展性以及高效性。 Vue框…

    編程 2025-04-25
  • PHP版本管理工具phpenv詳解

    在PHP項目開發過程中,我們可能需要用到不同版本的PHP環境來試驗不同的功能或避免不同版本的兼容性問題。或者我們需要在同一台服務器上同時運行多個不同版本的PHP語言。但是每次手動安…

    編程 2025-04-24
  • PHP數組去重詳解

    一、array_unique函數 array_unique是php中常用的數組去重函數,它基於值來判斷元素是否重複,具體使用方法如下: $array = array(‘a’, ‘b…

    編程 2025-04-24
  • PHP導出Excel文件

    一、PHP導出Excel文件列寬調整 當我們使用PHP導出Excel文件時,有時需要調整單元格的列寬。可以使用PHPExcel類庫中的setWidth方法來設置單元格的列寬。下面是…

    編程 2025-04-24

發表回復

登錄後才能評論