PHP development tools

1. Design ToolsUML and related design tools-Argo UMLThe UML drawing tool supports PHP stub generation. (Inclucial spin off is Posideon)-written in Java.-Umbrello UMLThe UML drawing tool supports PHP stub generation. Unix/KDE is required.-DiaSupport

PHP complete calendar CLASS)

Copy codeThe Code is as follows:Class Calendar {/** Www.jb51.net revised version*/Var $ YEAR, $ MONTH, $ DAY;Var $ WEEK = array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday ");Var $ _ MONTH = array ("01" => "August

Use preg_match_all in php to match the image in the article

Preg_match_all function:Int preg_match_all (string pattern, string subject, array matches [, int flags]) executes a global regular expression match.Search all the content that matches the regular expression given by pattern in the subject and put

Section 13th -- Object serialization

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

VBulletin HACK ---- display the topic size and open a new window on the Forum index page

VBulletin HACK---- Display the topic size and open a new window on the Forum index pageBy gogosoftShow topic sizeCause: this feature is not available in version 1.1.4, and some users use this feature as a reference for viewing topics.Advantage: you

Backfill the number of clicks on the downloaded file

Mysql database table named bookThe table contains the following fields:The unique identifier of the downloaded object.Downnum clicksFirst. php{?> & Amp; id = "> Click here download Ddload. phpInclude ("data. inc. php ");If ($ incerror){Echo $

Use PHP to instantly capture errors in PHP and send email notifications.

PHP developers all know that the most worrying thing is that there are some exceptions or errors in the program. If these conditions are output to the user's screen, the user will be frightened and even lost their work, if it is not output to the

PHP and XML: Use the expat function (3)

PHP and XML: Use the expat function (3)How to use this class in a PHP script? It is actually very simple. Here is an example:First, the class definition needs to be included in the script.Require (CLASS_DIR. "class. Newsboy. php ");Then, we create a

Php defines implementation code for the 404 page

Core code:Copy codeThe Code is as follows:@ Header ("http/1.1 404 not found ");@ Header ("status: 404 not found ");Echo 'echo 404 ';Exit (); To load the 404 page, you can run the following code:Copy codeThe Code is as follows:@ Header ("http/1.1 404

An example of using PHP to display ODBC data by PAGE

$ Pagesize = 2; // number of records displayed on one page$ Con = odbc_connect ("access_test", "", "", SQL _CUR_USE_ODBC) or die ("unable to connect to ODBC Data Source access_test"); // connect to an ODBC Data Source$ SQL = "select count (*) as

Imitating OSO forums (1)

 I believe that everyone who has been to OSO will leave a deep impression on the OSO forum, which is both outstanding in that aspect. If you don't want your homepage to have such a beautiful forum, it is not very complicated. Below we will only

Php Photo upload and Management example

Function: Upload a photo to display the uploaded person, upload time, image name, image size, and image description.Note: 1. Some Home Page spaces may not support temporary file operations after uploading. You can only try another one.2. The program

How PHP generates static HTML documents

Code:Copy codeThe Code is as follows:// Introduce the Database Configuration FileInclude (dirname (_ FILE _). "\ include \ config. php ");/**** Generate a single HTML file from the database.* @ Param Date $ Date* @ Param Time $ Time* @ Param String $

Php eval function usage tips for eval () functions in PHP

EvalEnter the value in the string.Syntax: void eval (string code_str );Return Value: NoneFunction Type: Data ProcessingDescriptionThis function can be used to substitute variable values in a string for processing database data. The code_str

PHP correct parsing UTF-8 string Skill Application

In the study of PHP & MYSQL-character encoding (I), this paper introduces the Conversion Relationship between Unicode and UTF-8, sums up the encoding rules of a UTF-8, according to the encoding rules, write a UTF-8 code parsing program, the

How to know the memory occupied by the PHP Program (memory_get_usage)

The following is an example:Copy codeThe Code is as follows:Echo memory_get_usage (), ''; // 313864$ Tmp = str_repeat ('HTTP: // www.nowamagic.net/", 4000 );Echo memory_get_usage (), ''; // 406048Unset ($ tmp );Echo memory_get_usage (); // 313952?>

PHP simple bubble method code sharing

The code is not concise enough.Copy codeThe Code is as follows:Function BubbleSort ($ str ){For ($ I = 0; $ I For ($ k = count ($ str)-2; $ k >=$ I; $ k --) {// bubble this value forward;If ($ str [$ k + 1] $ Tmp = $ str [$ k + 1];$ Str [$ k + 1] = $

Php control linux Server common functions shutdown restart start new site, etc.

Php contains a system method that can call system commands.Create a script (like/root/reboot_server.sh) and restart it.Copy codeThe Code is as follows:#! /Bin/bashReboot Grant him another permission of 4755Chown root: root/reboot_server.shChmod 4755/

Code of a PHP concurrent access instance

Copy codeThe Code is as follows:$ Start = $ _ GET ['s '];$ End = $ _ GET ['E'];$ Requests = array ();For ($ index = $ start; $ index $ Url = "http://www.essort.com/amfphp/services/curl/loadTest.php? Uid = $ index ";$ Requests [] = $ url;}$ Main =

Difference between global variables and $ GLOBALS [] in PHP

1. Comparison of examples Example 1:Copy codeThe Code is as follows:$ Var1 = 1;Function test (){Unset ($ GLOBALS ['var1']);}Test ();Echo $ var1;?> Because $ var1 is deleted, nothing is printed.Example 2:Copy codeThe Code is as follows:$ Var1 =

Total Pages: 12780 1 .... 12733 12734 12735 12736 12737 .... 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.