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,
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
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
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)};
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
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
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
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
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
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
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,
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
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 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
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 /
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