No matter how much you are a cow programmer, you can't remember everything. And a lot of times, find some knowledge and more trouble. So, there are a lot of cheat Sheets on the internet, translated into small copy or Quick Check card is good, in
PHP Basics Tutorial: Files uploaded in binary form and put into database
conn.php:
index.php:
uploading Files to server
index_ok.php:
";
} Else{echo "File upload failure!!";
echo "";}
First, the analysis before programming
To make a message board, and we also decided to do it in a database way, so we start with the following steps:
1. Fill in the message
Where do you write your message?
2. Send Message
When you enter data in a
1.1 First PHP
Copy CodeThe code is as follows:
my-A-PHP program
echo "Hello everybody!";
?>
Attach: Use of phpinfo () function
1.2 Input PHP Script
1.2.1 Mark PHP Code paragraph
1.2.2 Statements and comments
/* */
//
#
#
1.2.3 PHP and HTML
What is PHP:
PHP is the acronym for the English Hypertext preprocessing language hypertext preprocessor. PHP is a kind of HTML embedded language, is a server-side embedded HTML document script language, language style has similar to C language, is
the function of the. htaccess file in Apache
-The. htaccess file (or distributed configuration file) provides a way to configure changes to the directory, that is, to place a file containing one or more directives in a specific document directory to
From this chapter, we understand
. Create a function that can be called to reuse code
. Pass parameters to a function and interact with variables and data from the function return value and the different parts of the script
The code and function
A lot of friends without foundation, often ask PHP file how to open, in fact, PHP is a web script, but different from HTML XML tag language, can be opened directly through the browser, you need to have PHP running environment to access and open the
PHP Basics The number of the plastic in PHP is signed, can not represent unsigned integers, when the number of plastic is out of range, automatically from the number of changes to float, you can use the Php_int_size constant to see the php integer
Read some of the basics of PHP, and here I summarize:
1. There are three ways to embed PHP scripts in HTML:
?
Embedding Mode Two
echo " Test2";
? >
Embedding mode Three
echo " Test3";
? >
There is also an embedding method that uses the same
Two days ago and friends get-together, my friend put forward my blog since the main target is PHP beginners, should be appropriate to add suitable for PHP beginners article, and also saw many people on the Internet to ask how to learn PHP problem,
2012 I decided to start blogging, not for anything else, I hope to be able to record my growth through the blog and also hope to help some just graduated, just into the industry brothers and sisters. We are a group full of impetuous, complaining,
PHP automatic loading autoload mechanism is very important, here do 2 small exercises original articles, reproduced please note: Http://www.cnblogs.com/phpgcs file structure as follows, 2 ways to implement automatic loading 1, custom functions
The following are the referenced contents: $keyword =htmlspecialchars ($_get[' keyword '));if ($keyword!= ""){echo "Web page teaching Site Search _". $keyword. " --powered by webjx.com ";?> }Else{?>" Help Add Web Teaching Network to Favorites
Exception handling This article is intended for programmers who want to learn about the PHP5 exception handling mechanism. Read this article you need to have some object-oriented programming and PHP basics.
The following member methods are required
PHP is a server-side scripting language used to make dynamic Web pages. You create pages through PHP and HTML. When a visitor opens a Web page, the server handles the PHP instruction and sends its processing results to the visitor's browser, as if
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.