How to hide your. php file

Hide your. php fileHide your. php fileI saw this method when I made a PHP online manual image today. Haha, I didn't notice it before. So I said that the manual is the best teacher.Bytes ----------------------------------------------------------------

Solve the Problem of GD Chinese garbled characters

Today, I have carefully studied some related GD technologies and studied the Chinese Garbled text of GD.Using the GD library to output a Chinese string, it is useless to call imagestring. You need to use the imagettftext () function. For details

Customizable PHP thumbnails (supported by the GD library)

The typical PHP thumbnail generator is based on the GD library. You can specify the path to be generated and the width and height of the target. In the PHP environment that supports the GD library, save the following code as resize. php TestingA

Out-of-office starter php + mysql uses ajax technology for provincial, municipal, and prefecture-level 3 linkage without refreshing menu source code

Absolute OriginalityTest address: http://www.mlmm.cn/mypage? Name = ceshiTest Page code:Copy codeThe Code is as follows: php + ajax dynamically generated drop-down menu {$ regionss (People's Republic of China)} Regionss function code:QUOTE:Copy

Application Analysis of PHP static call non-static method

Static call of non-static methods !! This is unimaginable in java and c #, and it is absolutely impossible. Such errors will be pointed out during the compilation phase in these languages. But what about dynamic languages like php? First, there is

Custom php class (Search/modify) xml document

I recently watched the PHP tutorial video, where I talked about the xml file for PHP operations and learned some DOMDocument classes. I can't quite understand the manual. However, I wrote a class to find the xml node and modify the node value. The

PHP date function parameters

Time () is a number in PHP. This number indicates how many seconds have elapsed since. It's strange.However, this facilitates computing,Find that the previous day is time ()-60*60*24;Find that the time of the previous year is time () *

Differences between rewrite of apache and nginx

1. commands related to Nginx Rewrite Rules Commands related to Nginx Rewrite Rules include if, rewrite, set, return, and break. rewrite is the most critical command. A simple Nginx Rewrite rule syntax is as follows: Rewrite ^/B/(. *) \. html/play.

Fix phpmyadmin garbled characters and support gb2312 and UTF-8

Fix phpmyadmin garbled characters and support gb2312 and UTF-8 Many PHP fans in the group have been plagued by phpmyadmin garbled characters. since I had mysql-front, I seldom used phpmyadmin. however, each connection to the remote host is

Introduction to unlink (), mkdir (), rmdir (), and other methods in php

The unlink () function deletes files, the mkdir () function creates directories, and the rmdir () function deletes directories.Copy codeThe Code is as follows: unlink () function instance // Use the unlink function to delete an object$ Filename =

Section 3-define a class

+ ------------------------------------------------------------------------------- +| = Read this article for Haohappy | = Notes in the Classes and Objects chapter| = Translation-oriented + personal experiences| = Do not repost it to avoid

Php regularly deletes files in folders (Clears cached files)

Is there any way to automatically clear temporary folders?The following code is a php code that cleans up files in a folder at regular intervals.Ps: this code will continue to be executed without restarting the website, so it is only used for local

Implement the SESSION function in PHP3 (1)

SESSION function library: session. inc. php3If (! Isset ($ __session_inc __)){$ __Session_inc __= 1;// Require ("cookie. inc. php3 ");#-------------------------------------------------------------------# Session Management v1.0 21.6.1998# (C) Wild

Php makes HTML Tag auto-completion closed function code

Briefly explain some code:First ~ (] +?> )~ SiThis regular expression is matched. . Simply put, all are used.Second ~ ] *? /> ~ SiThis regular expression is matched ...... />. Is a single closed tag, as shown in Third ~ ] *?> ~ SiThis regular

PHP object-oriented learning NOTE 2: Design Mode for generating objects

1. Singleton)If an application contains only one object at a time, this object is a singleton to replace global variables.Copy codeThe Code is as follows:Require_once ("DB. php ");Class DatabaseConnection { public static function get () {Static $

A simple method makes background logon more secure (adding session verification in php)

This document uses Joomla! The background link is used as an example to explain how to "modify" our background link to make it more secure.Principle: Use a specific file to register a session for the background portal. Otherwise, the session fails

Mysqli class with cache data written in php

Copy codeThe Code is as follows:/*** Mysqli class*/Class db_mysqli {Protected $ mysqli;Protected $ SQL;Protected $ rs;Protected $ query_num = 0;Protected $ fetch_mode = MYSQLI_ASSOC;Protected $ cache_dir = './cache /';Protected $ cache_time =

Php Operation Array (merge, split, append, search, delete, etc)

1. Merge Arrays The array_merge () function combines arrays and returns a union array. The obtained array starts with the first input array parameter and is immediately added according to the order in which the following array parameters appear. The

Php Regular Expression matching Chinese problem analysis summary

Copy codeThe Code is as follows:$ Str = '123456789abcdefg of the People's Republic of China ';Echo preg_match ("/^ [u4e00-u9fa5_a-zA-Z0-9] {3, 15} $", $ strName ); Run the above Code to see the prompt information?Warning: preg_match (): Compilation

PHP persistent connection mysql_pconnect () function usage

Mysql_pconnect is especially applicable to a single process, especially monitoring programs that keep running.The usage of mysql_pconnect is similar to that of mysql_connect:Copy codeThe Code is as follows:$ Conn = mysql_pconnect ($ host, $ user, $

Total Pages: 12780 1 .... 4503 4504 4505 4506 4507 .... 12780 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.