For more information about PHP's Smarty learning, see the documents on the network. you can use Smarty to perform a simple test:
1. decompress the Smarty file to the website directory, such as libs.
2. create the templates, templates_c, configs,
PHP development Basics 1. variables and expressions
PHP variables start with a dollar sign $ and are distinguished by names. the variable name length is For example: $ _ name = "zhoulang"; // valid $ name = "zhoulang"; // valid $1 name = "zhoulang";
PHP configuration summary first install php5 and directly decompress the file to C: \ php (installation does not affect the location, depending on your preferences, all the paths in this article are based on my installation path, when installing
PHP error level F in many cases, some very difficult errors will occur in our PHP file, such as output of large white pages. It is possible that the PHP error level shields some non-fatal errors, resulting in no error prompt. Therefore,
Php error control ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error reports are reported by bit. Or add the numbers to get the expected error report level.
; E_ALL-all errors and warnings
; E_ERROR-fatal runtime error
; E_WARNING-runtime warning (non-fatal
Let php code execute php Code eval
(PHP 3, PHP 4)
Eval -- Evaluate a string as PHP code
Description
Mixed eval (string code_str)
Eval () evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? (To) what is CGI?
CGI stands for the Common Gateway Interface, which is a program running on a WEB server. With browser input triggered, this script is usually like a bridge between a server
Php learning notes-basic php syntax
Directory
1.1PHP language mark
1.2 instruction separator "Semicolon"
1.3 annotations in the program
Content
1.1 Four PHP language tags (same page style)
We recommend that you use this
PHP constant dirname (_ file _) learning PHP constant dirname (_ file __)
_ FILE _: a PHP magic constant. it returns the complete path and FILE name of the currently executed PHP script, including an absolute path.
1) the dirname (_ FILE _)
Php alias language structure
Today, a friend posted a question about the difference between exit and die on Baidu.
The standard answer in the answer is:
There are two differences: die is to exit and release the memory, exit is to exit but not
How to develop PHP with MAMP in MAC
But when I upload FILES in the browser, it is blank during print_r ($ _ FILES ..
Reply to discussion (solution)
Make sure the file upload function is enabled.Ensure that the uploaded file does not exceed
Newbie's question: how can I change the get content? the page hasn't changed.
After this page is executed once, execute again, modify? User =. the execution result does not change.
Reply to discussion (solution)
$ User = $ _ POST
For more information, see , now I want to use it from to. how can I use code to limit access time?
Reply to discussion (solution)
Obtain the current time. a prompt is displayed for a time period that is not allowed...
In 24-hour format, the
Variable assignment? Assign a value to a variable.
$ Foo = 25;
If this statement is executed, are two buckets in the memory? one is the storage value 25, and the other is the address with the value 25.
Is my understanding as follows correct?
How to set the session expiration time in php: php ession php session
How to set the session expiration time in php? when the session expires, the value in the session is invalid,
I need to set the session time in the code without modifying the
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