Implementation of friendly URLs (vomiting blood recommended)
you often see the URL of another station is this?
HTTP://WWW.XXX.COM/MODULE/SHOW/ACTION/LIST/PAGE/7
or
. http://xx.com/module/show/action/show/id/8.shtml with extension
or
. http:
PHP Session Variable
When you run an application, you open it, make some changes, and then close it. It's like a conversation. The computer knows who you are. It knows when you start the application and when it terminates. But on the internet,
As a result of the work, some client software interface with Html+css+javascript implementation, these files are placed in the client local, as a local file loading, but in some cases, need to connect to the server to obtain some information, if do
requirements: send sms to user input phone, request can customize information content
problem: no telecom cat, use free API interface can not customize SMS content
Solution: through the 4G network card, connected to the server, through the AT
For PHP, personal feeling is adept at manipulating arrays and strings, basically already is getting started, PHP itself has many operations array and string function, today in doing a function, need to use JS dynamic to create store information,
In PHP, some of the Chinese characters may feel very simple, but in the use of GBK encoding and UFT8 code may be a little different oh, the following small series to introduce.The regular GBK of Chinese characters under the code1. Judge whether the
Copy Code code as follows:
function Chinesefirst ($STR)
{
$str = Iconv ("UTF-8", "gb2312", $str); If the program is GBK, the trip will be commented out
//Judge whether the string is all Chinese
if (Preg_match ("/^[\x7f-\xff]/", $
The lesson received today is from a website to get merchandise inventory, but this site needs to log in, I use Fsockopen passed the whole header is useless, can only resort to curl.Incidentally, the Curl module opening method:(1) Copy from the PHP
Look at the code will be a small example: Php merge JS request
Copy Code code as follows:
Page Save As Js.php
Sample Foreground Request http://localhost/js.php?f=1,2
Request 1.js,2.js Two files
? Php
Header
The collection of images from the IMG tag, there are a lot of JavaScript scripts and useless information, you have to replace what you want, such as Alt. First look at the content to filter, I casually copied out:
Copy Code code as follows:
1 first read the code first
OK, now combine the above code to analyze and analyze several functions used above:
①imagecreatetruecolor ();
imagecreatetruecolor-new A true color image (feel wow, so long, in fact, a very good look at
Implementation of the function, operation items can be deleted individually, batch items can be deleted, bulk display, hidden (change the value of the advertising database status_is);
1. View key points:
Copy Code code as follows:
1.include statement
Use the Include statement to tell PHP to extract a specific file and load its entire contents
2.include_once statement
Each time you use the INCLUDE statement, it will again import the requested file, even if the
The main is to get to the address bar some information, domain name, port parameters, etc.
Copy Code code as follows:
Get domain name or host address
echo $_server[' Http_host ']. " ";
Get Web page address
echo $_server['
This example for you to share the PHP code class for your reference, the specific content as follows
width= $width;
$this->height= $height;
$this->codenum= $codeNum;
$this->checkcode= $this->createcheckcode ();
$number
This example for you to share the PHP query operation of the implementation code for your reference, the specific content as follows
de jure keyword query
Main Page:
Auto Query page Auto Query page
php include ("QiChe.class.php");
Of course, the prerequisite is to open a CDN in a function reload_into_ims on. So the user sent over the No-cache is not afraid. Because it will give No-cache to If-modified-since. So we write the program is mainly to If-modified-since control.
* * My program in foreign Srever, my own program stored to where, I am very difficult to remember.
So a simple directory recursive function, see my program, very convenient.
*/
function tree ($directory)
{
$mydir =dir ($directory);
echo "";
while
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