PHP custom Dump_var function to facilitate its own development

For example, the indentation of the relationship, each write in front plus echo "", in fact, this is very uncomfortable! There are internal var_dump (), anyway, the effect is not ideal, so I wrote this, add this function in the configuration file,

PHP's Cache class

It was a great pleasure to find it in phpx.com yesterday. Thank dxf218 I fixed a little bit of the problem. /* * FileName:cache.inc.php * Link: [Url]http://blog.111cn.net/dxflingxing/[/url] * author:dxflingxing * date:2006-5-9 * Last Modified:2006-5

PHP Static Class

Class Shtml { var $Templet; var $DataSource; var $Dir; var $fileName; var $mod; var $handle; function Shtml ($fileName = "") { $this->filename= $fileName; $this->mod= "WB"; $this->handle=false; $this->templet = ""; $this->datasource = Array

Access processing classes written in PHP

You use an Access database in your project, so you write an access processing class. The function name is the same as the ADODB class. ? PHP /* *access Database Operations Class*2008-3-26*liquan* $dsn = "Driver={microsoft Access DRIVER (*.mdb)};

Problem with PHP's Mail () function error

phpinfo ? $to = "atoat@sina.com"; $subject = "Php-mail"; $msg = "I completely understand SMTP servers now!"; $headers = "from:atoat@163.comrnreply-to:atoat@163.com"; Mail ("$to", "$subject", "$msg", "$headers"); echo "finished!"; ?> Error

Functions for filtering HTML code under PHP

*----------------------Functions to filter HTML code-----------------------*/function HtmlEncode ($string) {$string =trim ($string);$string =str_replace ("&", "&", $string);$string =str_replace ("" "," "", $string);$string =str_replace ("", "&",

The application of sprintf in PHP

sprintf Formats the string. Syntax: string sprintf (string format, mixed [args] ...); return value: String Types of functions: Data processing Content Description This function is used to format strings. The parameter format is the format of the

PHP String handler function

md5

Addslashes: String add Slash. Bin2Hex: The binary turns into 16 carry. Chop: Remove continuous blank. CHR: Returns the character of the ordinal value. Chunk_split: Splits the string into small segments. Convert_cyr_string: Converts the ancient

Php image processing class: scaling, cropping, rounded corner, and skew (1/3)

The code is as follows:Copy code Class resizeimage{// Image typeVar $ type;// Actual widthVar $ width;// Actual heightVar $ height;// Change the widthVar $ resize_width;// The height after the changeVar $ resize_height;// Whether to cut the

Reading and Writing files in PHP

1. fopen (create a file and open a file)Syntax:Fopen (filename, mode) filename, specifies the file to be opened. Mode. The possible values are shown in the following table.Mode description"R" is opened in read-only mode, pointing the file pointer to

Php solves the problem of displaying only one space in multiple input spaces.

The code is as follows:Copy code If ($ _ POST){$ Txt = $ _ POST ['txt '];Echo $ txt. ' ';Echo str_replace (chr (32), '& nbsp;', $ txt );}?>

Php solves the garbled problem of various applications

Solve the garbled problem of various applications in the php Tutorial1) use tags to set page encodingThe role of this label is to declare the client browser with what character set encoding to display the page, xxx can be GB2312, GBK, UTF-8 (and

Php functions to solve json Chinese garbled characters

The php Tutorial comes with json_encode to process json data, so they do not support Chinese. Let's take a look at the example below.Echo json_encode (array (123213, 'China '));{"Platformid": "123213", "userid": "1023", "username": "u00b7u00f0u00b5u0

PHP regular expression matching unicode encoding regular expression method

In the php Tutorial, the regular expression matches the regular expression method of unicode encoding. Because of the special nature of unicode encoding, the general Chinese or English regular expressions cannot obtain the expected content correctly,

Php Regular Expression Learning Manual (1/5)

Full manual on regular expressions in php tutorialsPrefaceRegular expressions are cumbersome, but they are powerful. The application after learning will give you an absolute sense of accomplishment in addition to improving your efficiency. As long

Php encoding of input characters on the page

How to determine the encoding of input characters on the page in the php TutorialFunction convtoutf8 ($ str){ If (mb_detect_encoding ($ str, "UTF-8, ISO-8859-1, gbk ")! = "UTF-8 "){Return iconv ("gbk", "UTF-8", $ str );} Else{ Return $ str;}} ?>But

Php Chinese Directory include troubleshooting

Php Tutorial Chinese Directory include error solution accessInclude_path = '.; c: php5pear' errorWarning: unknown: failed to open stream: no such file or directory in unknown on line 0Fatal error: unknown: failed opening required

How to set the 8-hour time difference in php

Session_start ();Date_default_timezone_set ('Asia/Shanghai ');Header ("cache-control: no-cache, must-revalidate ");Define ('applicaton _ root', dirname (_ file __));Define ('sys _ root', dirname (_ file _). '/framework ');Define ('default _ control',

Php calls the fckeditor webpage editor method

The following code is to be called in html. Today we will talk about how to call the code in the php Tutorial, as shown in figureInclude ("../editor/fckeditor. php ");$ Ofckeditor = new fckeditor ('fckeditor1 ');$ Ofckeditor-> basepath = '../editor /

Total Pages: 12780 1 .... 6879 6880 6881 6882 6883 .... 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.