ThinkPHP3.0 use Baidu Ueditor the correct configuration method ...
Using Baidu Ueditor, according to the article on Baidu Configuration, the editor will have control can not use the problem, according to my method fully open.
File upload path
PHP multi-File Upload, File upload package
/**? * Add by Huangwenyuan 2011-7-27 multiple file uploads, returns an array that contains the array, each containing the random code file name and the real filename? * Enter Description here ...? *
Questions about PHP operating SQL adding data
This is the table for my database:
# NAME Type property NULL default
1 ID tinyint (3) UNSIGNED No
2 name varchar (UTF8_GENERAL_CI) No
3 phone varchar (UTF8_GENERAL_CI) No
4 BookID tinyint (3) UNSIGNED
Click on the image to automatically download, how to write code?
Click on the image to automatically download, how to write code?
------Solution--------------------
PHP Code
function Get_extension ($file) {return substr (STRRCHR ($file, '. '), 1
Separate the array into two parts
Separate an array into two parts,
Part only takes two messages
The other part is all information except for these two messages
such as Array (A=>1,b=>2,c=>3,d=>4,.....)
The first part is taken to array
Gets the total number in the table.
PHP Code
Public function count () { $db =new db (); $db->connect (); $query = "SELECT count (*) from Wenzhang"; $shuju = $db->query ($query); $db->close ();
Code and examples of PHP paging technology
Very good very practical reprint.
Code and examples of PHP paging technology
August 14, 2011
Chenhao
Post a comment
Read the comments
3,634 reads??
This article is from: helpful PHP pagination Scripts
How the PHP program uploads pictures from one server to another in bulk
Now there is a business need from 2003server on the batch to upload pictures to Linux How to do kneeling thanks to PHP! I wish the good people a safe life!
------Solution------
Help Master! How to solve the following problems?
I want to do a file upload download management PHP, the requirements are as follows:
Can not use the database, self-set several user name and password, to set up an administrator account, ordinary
Help A. Htaccess of the writing, trouble expert guidance, thank you very much!!
The original link format is xxx.com/index.php?id=xxx (id value contains a-z,a-z,0-9)
Want to convert to xxx.com/xxx (directory format)
Where Id=index is the home root
Query statements have errors, looking for a long time have not found, who help me to see!
I set the condition that number=512 only one record in the database that meets the criteria, but each traversal output outputs all the data?
have been unable
PHP Problem Solving
?
PHP Problem Solving:
?
1: String escape function:?
?
?1> insert MySQL database escape function: Mysqli_escape_string ();
? 2>addslashes () using a backslash to reference a string
? ? Description: Returns a String that is
PHP regular greedy mode and lazy mode
Greedy mode
When a regular expression contains a qualifier that can accept duplicates, the usual behavior is to match as many characters as possible (in order for the entire expression to be matched).
Consider
Dedecms column pseudo-static rules help
Dedecms column pseudo-static rules for help:
The system is dedecms.
Because columns and content are more static, the generation is slow, so use pseudo-static
But looking up the Dede pseudo-static rules on
How do I implement link conversions?
As an example:
Link format:
/php/"* *"/"# #"
The function I want to implement is that three input boxes on the page
1th input box, user input, * * content
2nd input box, user input, # #的内容
3rd input box,
For help Replace text with regular in PHP
Now there is a text in the page as follows:
------------------------------
Test text A
[Code=h]aa622ea28638f1e2f9ebc1c845499ed3[/code]
Test text B
[Code=h] D0c93d1fac0843a993431688bd6afd10[/code]
Test text C
Preg_replace Problem Solving
I have another string:
$html = '
"Maingood"
"Subgood" "Subgood"
"///" Maingood "" Subgood "the number of uncertain
I now use echo preg_replace ("/(" Maingood ") | ( "Subgood")/is ", callback function, $html);
How to sort the key names of a multidimensional array
Like what
$families = array
(
"Griffin" =>array
(
"Peter" =>50
),
"Brown" =>array
(
"Cleveland" =>30
)
);
In the sequence, the key names and corresponding key values are unchanged, as in the
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