GL Host:GL Host-Free hosting of the Php,mysql cpanel no ads!
Fast:This is the fastest and expanding professional free virtual hosting you've ever seen.
Stability:Security and stability--what is glhosting.info think first.
Free Phone:We offer free
Full instance
Automatically detect the background and font, and randomly select a range of background pictures, random use of fonts, display validation string randomly display font size, character spacing, character color, etc.
The code
The session in PHP is by default a cookie used by the client. When the client's cookie is disabled, it is automatically passed through the query_string.
There are 11 functions in the PHP processing session, and we'll talk about several functions we'
Allow PHP download code to support breakpoint continuation of the main HTTP protocol header Content-range to achieveLet's say the download principle of HTTPFor HTTP protocols, when you request a file from a server, you can send a request similar to
The principle of implementation is to use Str_replace to replace RN N T, and then use regular expressions to filter some annotation tags.
The code is as follows
Copy Code
function compress_html ($string) {$string = Str_
The database structure design of the algorithm is the simplest. Category A field ID in the table, a field FID (parent ID). This allows you to determine the level of content based on where id = FID, using recursion to the top
Let's find the array
Method One, set the time zone on the PHP page
In the front of the page plus the following application is OK
Date_default_timezone_set usage is as followsDate_default_timezone_set(PHP 5 >= 5.1.0rc1)Date_default_timezone_set--Sets the default time
Renamed Winntphp.ini-dist as PHP.ini, and found; Windows Extensions items will
The code is as follows
Copy Code
; Extension=php_ldap.dllChange intoExtension=php_ldap.dll
If there's anything else you can do,
Using HTML to write JavaScript to introduce a PHP link, the PHP is actually generated JS files:
The code is as follows
Copy Code
if (= = = $ad _type_id) {//CoupletOb_start ();Include Tmpl_path. ' Code/duilian.js ';Header
Developer Tutorials Blog
published an article today
http://www.developertutorials.com/blog/web/5-ways-to-be-a-better-php-developer-36/
A five-point suggestion for being a good programmer is presented.
here, I summarize five points to improve
This would have been the basic use of the session, but in PHP is not the spirit. However, we can register the session variable as "global variable across Windows." But there is a condition that you want to send a variable named Session_name () with
We all know that using Php+mysql in the Web page to implement the database data display is very simple and interesting, very few database data in the case of the page display is still satisfactory, but when the database data is very many cases, the
When writing a program, summarize a little experience, how to take only the data in double quotes of strings
For example: $aihao = ["\u7f8e\u98df", "\U4EA4\U53CB", "\u5176\u4ed6"], take out \U7F8E\U98DF
Preg_match_all ('/\ "(. *?) \ "/", $aihao,
A regular expression that matches the URL of the URL:
The code is as follows
Copy Code
(((F|HT) {1}tp://) [-a-za-z0-9@:%_\+.~#?&//=]+)
Example: PHP regular expression automatically matches whether the string is
On the positive I was a smattering, I am the idea of the regular is, can be used on the line!
For all the characters, my first understanding was. *
Then Google a bit, just know. * Connecting together means any number of characters that do not
This method is not run in the popular apache + php Tutorial _ module mode. I use nginx as a web server and run php in fastcgi mode.Compile in linux:Nginx I am still used to choosing version 8.54. Its compilation depends on the following software
Nginx 0.7.x + php Tutorial 5.2.10 (fastcgi) build a web server that is 10 times better than apache (version 5th)Original article addressHttp://blog.s135.com/nginx_php_v5/Because the compilation process and wait time are cumbersome, I wrote a fully
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