Basic question: What is the object reference problem?
My_val = 5; global $ global_obj; $ global_obj-> my_val = 10; echo $ p-> my_val; // output 5var_dump ($ p = $ global_obj ); // return false?>
Why is the result 5 instead of 10;
My
PHP-Article 1: How to install ZendStudio, as well as the basic preparations for the Chinese language and language. I got it from yesterday morning, but I am exhausted. The information on the Internet is not neat, so I wrote a system Point article to
Apache + php has just installed apache2.2.2 and php5.1.4.
No problem occurs during installation, and apache can also run. php can also parse php files (under the command line ).
But the php file sent to apache cannot be parsed in the browser.
Summary In Php (1) 1. concept
Syntax mode is similar to perl. expressions must be closed with delimiters, such as a forward slash (/).
The delimiter can be any non-alphanumeric, non-ascii characters except the backslash (\) and null bytes.
Php anti-injection php website how to prevent SQL injection?
Website operation security must be considered by every Webmaster. as you know, most websites attacked by hackers use SQL injection, this is why we often say that the most primitive
Here we use PhpMyadmin to manage the Mysql database Gui.
Version used:
Apache_2.2.11-win32-x86-no_ssl (msi installation)
Mysql-essential-5.1.23-rc-win32 (msi installation)
Php-5.2.8-Win32
PhpMyAdmin-3.0.0-all-languages
1. Apache
1.1 install
[Php] debugging tool. if we want to know who called a method? Debug_print_backtrace can solve this problem !~
Test Code
1
"; Debug_print_backtrace (); 6} 7} 8 9 class B {10 function say ($ msg) {11 $ a = new (); 12 $ a-> say ($ msg); 13} 14}
PHP and Unicode signatures (BOM) when writing or modifying PHP files stored in UTF-8 encoding, sometimes there are some inexplicable problems:
1. the page displays the word "blank", and the rest is blank;
2. you cannot log in or log out;
3. a blank
[Switch] session explanation in PHP refers to the period from the time when a user browses a website to the time when the user closes the browser, that is, the time the user spends browsing the website. From the above definition, we can see that
You can use COM to operate Excel in PHP and control Excel in PHP. The following is a simple example to demonstrate how PHP interacts with Excel (the example contains detailed notes ):
1
2 // specify the page encoding to prevent Chinese garbled
Common php knowledge 1. session_start (): start a session in PHP. (note that all PHP session information is at the top of the page. Otherwise, an error will occur before any HTML code !)
$ _ SESSION ['...']: SESSION array (enter the variable name
Advantages of phpfastcgi: this is a detailed page of the advantages of php fastcgi. it introduces the knowledge, skills, and experience related to the advantages of php, fcgi, cgi, fork, and php fastcgi, and some php source code.
Class = 'pingjiaf'
PHP's ob_start () function uses PHP's ob_start () to control your browser cache ()
Reproduced from: http://home.phpchina.com/space.php? Uid = 52440 & do = blog & id = 38971
Output ControlFunctions allow you to freely control the output of data in
Php interview knowledge started to engage in php again, and a lot of php knowledge was forgotten. the way to learn php is to read the interview questions.
Below is a php interview question I collected
1. use PHP to print the time format of the
PHP function CURL cURL is a tool that uses URL syntax to transmit files and data. it supports many protocols, such as HTTP, FTP, and TELNET. The best thing is that PHP also supports the cURL Library. This article describes some advanced features of
In php controller 4, the controller is used to accept requests. It uses the obtained method. here, a function module is loaded through URI to refresh or submit a presentation layer. The controller uses the $ _ GET automatic global variable to
Json usage in php 1. json_encode ()
This function is mainly used to convert arrays and objects to json format. First, let's look at an example of array conversion:
$ Arr = array ('a' => 1, 'B' => 2, 'C' => 3, 'D' => 4, 'E' => 5 );
Echo
The php $ _ GET variable $ _ GET is used to collect the values in the form from method = "get.
$ _ GET variable
The $ _ GET variable is an array with the variable name and value sent by the http get method.
The $ _ GET variable is used to collect
Introduction to phpcall_user_func mixed call_user_func (callback $ function [, mixed $ parameter [, mixed $...])
A php function is passed using a function name string. Any built-in or user-defined functions can be passed, except for the language
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