1. Prevent jumping out of the web directory
First modify the httpd.conf, if you only allow your PHP script to operate in the Web directory, but also can modify the httpd.conf document limit PHP operation path. For example, if your web directory
Copy CodeThe code is as follows:
$sourceNumber = "1";
$newNumber = substr (Strval ($sourceNumber +1000), 1, 3);
echo "$newNumber";
?>
This time it will appear: 001
If you want to increase the number of digits, you can increase the 1000 and then
We are pleased to announce the official release of the CodeIgniter 1.6.2 version. This release includes more than 29 BUG fixes and 34 feature additions and enhancements. These include improving the interaction between the "Active Record" and the
Why do you think about using vs2005?
The first is the power of the VS development. NET application, or ASP. I've always missed it.
The second is that VS is a very comprehensive editor, even the pictures can be opened directly to the editor, for
$DBH = @mysql_connect ("localhost:3306", "root", "9999");
/* Define the variable DBH, the mysql_connect () function means to connect to the MySQL database, "@" means to block the error */
if (! $dbh) {die ("error");}
/* the die () function means
Development framework
Wact http://wact.sourceforge.net/
A long-established PHP programming framework that implements many
CorporateLevel of development mode
Horde http://www.horde.org/horde/
A number of commonly used class libraries are available
Subscript: The identifying name in the array is the code of the string or integer in the array
Several index values in an array are referred to as several-dimensional arrays.
Index value: An index is a structure that sorts the values of one or more
;;;;;;;;;;;;
;; grammar;;
; The syntax of the file is very simple. whitespace characters and lines beginning with semicolons are simply ignored.
; Chapter headings (For example: [PHP]) are also simply ignored, even though they may have some meaning
Easy to use method:
Copy CodeThe code is as follows:
$object = new Httpdownload ();
$object->set_byfile ($file)%n#h#%;//server file name, including path
$object->filename = $filename;//download Save as file name
$object->download ();
3. Source
I put these two statements together to introduce, the reader can compare learning.
1.require () statementThe Require () statement is used for the specified file instead of the statement itself, just like the include () statement in the C language.
$act =$_post[' act '];
Always prompt with the above code
notice:undefined index:act in F:\windsflybook\post.php on line 18
In addition, there are sometimes
Reference content
Notice:undefined Variable:submit ...
Wait for some of these tips
Cause:
curl_close-closing a Curl session
curl_copy_handle-Copy all the contents and parameters of a Curl connection resource
curl_errno-returns a numeric number that contains the current session error information
curl_error-returns a string containing the
Copy CodeThe code is as follows:
Login
Copy CodeThe code is as follows:
@mysql_connect ("localhost", "root", "1981427")//Select the database before you need to connect to the database server
Or Die ("Database server
Copy CodeThe code is as follows:
@mysql_connect ("localhost", "root", "1981427")//Select the database before you need to connect to the database server
Or Die ("Database server Connection Failed");
@mysql_select_db ("test")//Select Database MyDB
Or
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