1. Initialize(Use the session before use, a page with one can be)
2. Save
$_session[]=;
( can be double,bool,int, array, object type of data)
Example:
$_session[']= "";
3. Remove the specified
Example:
$uName =$_session["];
4. Delete the
The question of Joseph (sometimes also called Josephus permutation) is a problem that appears in computer science and mathematics. In computer programming algorithms, a similar problem is called Joseph Ring. Also known as "drop handkerchief problem".
In the Phpcms publishing page, there is a bug, even if the editor has no access to a column, but also can be in the publishing page of the Column drop-down menu to select the column, and the article can be published under this section. How does this
PHP configuration file php.ini, search Extension=php_gd2.dll, remove the front semicolon can;
1. Add a verify method to the module class to display the verification codeCopy the Code code as follows:Public Function Verify () {Import the Image class
The meaning of $this means what to instantiate after the specific object!
We usually declare a class first, then use this class to instantiate an Object!
However, when we declare this class, we want to use the properties or methods of this class
Recently in the development process need to get the image of the extracted content address, here simply share the next method, the need for friends can refer to the next
Fascinated by the regular, constantly experimenting with new tricks, first
Implementing a so-called MVC framework in PHP is straightforward. Let's talk about ideas here.
First, the Spl_autoload_register function is used to implement its own type automatic loading mechanism. So no other code needs to think about how to
1. Function calls
Probably because I compare rookie, just started to learn to write PHP page, not write the controller, in the page debugging call the Dump () function, I wrote: $dump ($pageCount); the error is: PHP function name must be a String.
Operating Environment: Phpstudy
It basically includes everything you need to run your PHP app, PHP, Apache, MySQL, one-click Idiot installation
Once installed, you can only configure the virtual host and modify the host file to support multiple
PHP CURL Session COOKIE
You can call system commands, and you can:
Copy CodeThe code is as follows:
function Dirsize ($dir) {
@ $dh = Opendir ($dir);
$size = 0;
while ($file = @readdir ($DH)) {
if ($file! = "." and $file! = "...") {
$path = $dir. "
constants, like variables, are used to temporarily store a value, but constants differ in many ways from variables.
Constant:1. The data cannot be changed during program execution, and the scope of the constant is global.2, the name of the constant
The code is very simple, using regular expressions, please refer to the use of it
Copy the Code code as follows:
function Is_md5 ($password) {
Return Preg_match ("/^[a-z0-9]{32}$/", $password);
}
http://www.bkjia.com/PHPjc/748161.html
Drupal not only in the content management has a powerful function, in the Search engine optimization (SEO) also has a powerful function, through the Drupal backstage can achieve SEO-friendly features, but also allows webmasters to do not need
Sometimes when you delete information, you need to delete all of this information, this time you need to delete the recursive. The following is a section of code that I wrote when I was doing the deletion of departmental functions in department
Always thought tabs update is a Easyui bug, recently found in the use of this can be resolved
Copy the Code code as follows:
function Updatetab (URL)
{
var tab = $ (' #tt '). Tabs (' getselected ');
$ ("#tt"). Tabs (' Update ', {Tab:tab,options:
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