Weil Jimmer's BlogWeil Jimmer's Blog


抓取網站原始碼 PHP

No Comments
-
更新於 2014-04-15 19:42:10

<?php

$array = file('網址');

foreach ($array as $line_num => $html) {
//echo htmlspecialchars($html) . "<br />\n";
echo "{$line_num}&nbsp;&nbsp;&nbsp;".htmlspecialchars($html,ENT_QUOTES) . "<br />\n";
}
?>

此為  PHP原始碼,抓取網站原始碼且有 列出行數。


This entry was posted in PHP By Weil Jimmer.

第一次發文

No Comments
-
更新於 2013-09-19 12:57:41

哇,第一次在自己架的blog網站上,發文章,原本也是這樣認為 可以多發一點, 只是這個軟體的介面我不喜歡而已... ... 編輯介面的選項還好,都OK,感覺板模少了點而已。


This entry was posted in Mood By Weil Jimmer.

最前頁 上一頁  14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 /28 頁)

Visitor Count

pop
nonenonenone

Note

台灣假新聞橫行,沒一家霉體能信的,網軍側翼到處洗風向,堪憂。

毋忘初心,
絕不利慾薰心。

支持網路中立性.
Support Net Neutrality.

飽暖思淫欲,
饑寒起盜心。

支持臺灣實施無條件基本收入

今天是國際盲人節。

Words Quiz


Search

Music

Blogging Journey

4428days

since our first blog post.

The strong do what they can and the weak suffer what they must.

Privacy is your right and ability to be yourself and express yourself without the fear that someone is looking over your shoulder and that you might be punished for being yourself, whatever that may be.

It is quality rather than quantity that matters.

I WANT Internet Freedom.

Reality made most of people lost their childishness.

Justice,Freedom,Knowledge.

Without music life would be a mistake.

Support/Donate

This site also need a little money to maintain operations, not entirely without any cost in the Internet. Your donations will be the best support and power of the site.
MethodBitcoin Address
bitcoin1gtuwCjjVVrNUHPGvW6nsuWGxSwygUv4x
buymeacoffee
Register in linode via invitation link and stay active for three months.Linode

Support The Zeitgeist Movement

The Zeitgeist Movement

The Lie We Live

The Lie We Live

The Questions We Never Ask

The Questions We Never Ask

Man

Man

THE EMPLOYMENT

Man

In The Fall

In The Fall

Facebook is EATING the Internet

Facebook

Categories

Android (7)

Announcement (4)

Arduino (2)

Bash (2)

C (3)

C# (5)

C++ (1)

Experience (52)

Flash (2)

Free (13)

Functions (36)

Games (13)

General (60)

Git (2)

HTML (7)

Java (13)

JS (7)

Mood (24)

NAS (2)

Note (32)

Office (1)

OpenWrt (6)

PHP (9)

Privacy (4)

Product (12)

Python (4)

Software (11)

The Internet (25)

Tools (16)

VB.NET (8)

WebHosting (7)

Wi-Fi (5)

XML (4)