Copy CodeThe code is as follows:
Header ("Content-type:image/png");
$conn = mysql_connect ("localhost", "root", ""); Connecting to a database
$colname _rs_article = $_get[' id ']; Get parameter ID
mysql_select_db ("CMS", $conn); Execute SQL
$query
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
Hello, everyone, I am less, I would like to ask you a question today, if we ourselves are products, then how can we persuade others, we are the best? Highly educated, good, others have succeeded. Will Php,java,c#,python no longer learn c++,c,8086,
Talking about Ajax
Ajax is an abbreviation for asynchronous JavaScript and XML (as well as DHTML, etc.).
It is made up of html+js+dom, and this tutorial does not involve DOM for the time being.
The concept of synchronization: The page submits the
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
Before each encounter paging, always have to write their own, feel quite cumbersome, so in the general principle, wrote a pagination method, hereby recorded.
Currently this page supports Ajax paging with static address paging and no-link addresses (
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
Copy CodeThe code is as follows:
$file =fopen ("11.txt", "R") or exit ("Unable to open file!"); /fopen Open the file, if it does not exist, the display will not open.
$filesize =filesize ("11.txt");//Calculate File size
Echo fread ($file, $filesize);
There are many differences between the class of PHP and other languages. PHP allows you to invoke an instance method in a static method, providing the keyword self and static members to access the class itself. Self always refers to the current
This article mainly introduces the PHP definition array and the use of the example (PHP array definition method), the need for friends can refer to the following
This is a php example of the array, a brief description of the basic use of the array,
Some requirements for PHP developers:
Basics of "1" HTML Common tags
Basic knowledge of the "2" html+css layout
"3" Learn about the PHP development environment
"4" Learn PHP tags and extensions
1, PHP tag is Satan??
2. php extension is the
Found a part-time job, do the site, but the company inside the server is used iis,win2003 system, and the previous site is ASPX. The boss is a teacher in our school, I was recommended by seniors passed.
----------------------------------------------
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
Indirect references to "1" variables:
The above output is 123.
We can see a $ in the second line of code, and access the variable by the specified name, the specified name is stored in $ A (' B '), and the value of the variable $b is changed
Copy CodeThe code is as follows:
Usually used for custom services, such as monthly membership, year, etc.
Gets the current time over one months, displayed in datetime format
Date (' y-m-d h:i:s ', Strtotime (' +1 month '))
Gets the current time
Copy CodeThe code is as follows:
Set_time_limit (0);
function tree ($directory)
{
$mydir =dir ($directory);
echo "
";
while ($file = $mydir->read ()) {
if (Is_dir ("$directory/$file") and ($file! = ".") and ($file! = "..."))
{
echo "
If you get a second $str[1] or $str{1}, it is not recommended to use {}, it is best to use []
Test as follows
Copy CodeThe code is as follows:
Gets the last character of a character
$str = ' phpddt.com ';
echo $str [Strlen ($STR)-1]; M
Modify the
In order to facilitate the learning of arrays, the introduction of the transition chapter is the form, as for why, and so on when you really learn the array when you will find its beauty pull.
========================================================
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