A company news management system displays the title of a browser label. after publishing news, each page displays a website name. I want to modify the title of each article after making a piece of news. This is also suitable for other tools.
Thank
Use curl in PHP to get the page title example, Curltitle
Get the actual demo of the page title through PHP:
Sample code:
Copy CodeThe code is as follows:/*Function: Gets the URL on the pageContent Parameter: $_post[' URL ']*/ Set the maximum number
How PHP uses the address to get the contents of the title of a Web page.
For example, I enter a URL in the text box. Click the "Get Title" button to get to the title and write it to the text box below.
Share to:
------Solution----------------
Get the actual demo of the title of the page through PHP:
Sample code:
Copy Code code as follows:
/*
function: Get the content on the URL page
Parameters: $_post[' url ']
*/
Set maximum number of seconds to execute
Ini_set
This post was last edited by mingniu66 on 2013-11-20 16:32:18
Header ("Content-type:text/html;charset=utf-8");
$url = ' http://cm100.net/';
Get the encoding for a remote Web page
function _charset ($url) {
$text = file_get_contents ($url);
$mode
The security of PHP applications and PHP applications. The security of PHP applications. the security of PHP applications, whether in development, interview, or technical discussion, requires a deep understanding and understanding. Objective in this
How does php obtain the content in the title of a webpage through the address. For example, I enter a URL in the text box. Click "get title" to obtain the title and write it to the text box below.
Reply to discussion (solution)
$arr =
Php beginners help: how to obtain the title value of a hyperlink? This post was last edited by ileleX from 2013-10-3110: 07: 11. Like a hyperlink: & lt; a & nbsp; href = "http://www.example.com /? How can I obtain the title value of a
PHPCMS get tag overview, get tag syntax, get tag creation tool, get call this system example, get call other system examples
First, Get tags overview
in layman 's terms, the get tag is a simple, friendly code that PHPCMS defines to directly
For example, the article content contains the following link address:
This is MKV video test
This is the MOV video test
This is the SWF video test
This is AVI video test
This is the MP4 video test.
I want to get the following result through
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.