We must all know PHP's powerful function, using it can easily write a text-type counter out, but this can only be used in the site you can run the PHP program to use, how can you not run PHP site can also use it? Please look down:
In fact, this uses
Text Watermark
Text watermark is to add text on the picture, the main use of GD library Imagefttext method, and the need for font files. As follows:
The implementation code is as follows:
Copy the Code code as follows:$dst _path = ' dst.jpg
As you know, the importance of the database to the network. Because of the complexity of CGI, now ASP and Php+mysql have become the mainstream. Almost all of the personal pages have to use the message book, but the application of the message book is
String read/write functions fgets and fputs
1. The fgets function of the string reading function reads a string from a specified file to a character array. The function is called in the form of fgets (character array name, n, file pointer);
The homepage is about 3KB and tested locally.
Copy codeThe Code is as follows: file_get_contents ('shadow. xml ');
Time: 0.0003 secondsCopy codeThe Code is as follows: $ indexFile = fopen ('shadow. xml', 'R'); while (! Feof ($ indexFile) fgetc ($
PHP extension text processing-string and string functions are all string functions processed in various ways. There are also some special chapters in the regular expression and URL processing sections.
For more information about the operating
I am always eager to put the blog home page in a file, and the result is in the file. when the blog is updated, I will re-write the content to this file. So I tested three common methods for reading text. the homepage is about 3 kB, which is tested
Example of a text message book in php (3) I described guest. php and edit. php in the last two sections. note the differences between php and html:
Php is usually --> (1)
(2)
Echo ("zihanonline ");
?>
(3)
In PHP programming, if you use a text database, you may feel a headache for its classification and sorting titles. The following section describes how to use PHP and JavaScript scripts to implement this function: for example, when a user clicks the
Page out
/**
* $pageType Paging Type 1 is the number page 2 is the text paging
* $pagetotal, $page, $total and other data can be passed as parameters, or in paging as global variables (recommended)
*/
function Paging
PHP as a script of the interpretation of the language, the characteristics of weak variables and the implementation of the release of resources of the characteristics of Zhucheng, PHP7 's strong join in the back-end language of the warlords set off
Searchstr (& quot ;. preg_quote ($ searchstr ). & quot;); $ searchstr is the search keyword $ recordsfile ($ file); get the number of all records $ file is the search data file $ search_reocrdspreg_grep ($ searchstr, $ records); start searchstr = ("/
Example 4 of a text message book in php ). In this section, we put dele. php and sys. php. --------- dele. phphtmlheadtitle to delete the titlestyle message! -- A: link {text-decoration: none; color: 0000ff} A: visited {text-decorati. we will
This article adds two related implementations to your favorites. You can use php fopen to open a text file and save it to the database. The method is simple. Let's take a look. This article adds two related implementations to your favorites. You can
These four functions in PHP are often confusing, and here are some notes to take.
1, Strstr
strstr-displays the string that was found for the first time, to find, and subsequent strings. Case sensitive.
Code Listing:
[PHP]strstr function$email = '
As you know, the importance of the database to the network. Because of the complexity of CGI, now ASP and Php+mysql have become the mainstream. Almost all of the personal pages have to use the message book, but the application of the message book is
In this section, I will tell you about the establishment and uploading of guest.txt.
-------
Guest.txt
Message content:
zihanonline 留言人大名:zihanonline 主页:http://xxx.com时间:2001年4月15日14小时06分 来自: xx.x.x.x -------
Instance code:
Copy CodeThe code is as follows:
/**
* **********************************************************
* Read Me
* Article pagination
*
* Paging method, can be paged by the number of words, according to line breaks, according to special
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.