Home Backend Development PHP Tutorial 如何从代码里面得到网页的源码?(类似chrome的开发人员工具)

如何从代码里面得到网页的源码?(类似chrome的开发人员工具)

Jun 13, 2016 pm 01:21 PM
chrome html php

怎么从代码里面得到网页的源码?(类似chrome的开发人员工具)
想对网页内容做个检索,如题想把源码抓到内存中,再做个关键字检索。

但又有好多网页直接查看源代码又没正文内容,用chrome开发人员工具,发现里面真正有内容的是一些PHP页面,这些PHP页面又要怎么获取?再获取这些PHP页面的正文内容。

刚接触,完全没什么概念。求方向~~用的什么技术?chrome是怎么实现的? 最好是C++标准

------解决方案--------------------
暂时没办法,只能抓去右键源代码看到的
------解决方案--------------------
你只能抓取最后生成的HTML源码.
------解决方案--------------------
chrome能抓到服务端代码??
------解决方案--------------------
你是说抓php的内容? 不可能。

还是抓最终的html代码?
------解决方案--------------------
抓到的是html,因为浏览器要把这些东西呈现出来,当然这些东西会被解析的(或者顺藤摸瓜过去)
你可以做个模拟浏览器解析的东东出来,或者开发个浏览器插件的东东出来....(额,我想到的只有这个)
------解决方案--------------------
真能看到php服务器端的源代码
那还有什么安全性可言!
是解析过的吧!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

CakePHP Date and Time

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

CakePHP File upload

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

CakePHP Routing

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

HTML Table Layout

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

CakePHP Project Configuration

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

Discuss CakePHP

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP Quick Guide

See all articles