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 is useful for storing code in a database text field for
PHP can be executed in addition to the Web, but also through the PHP CLI (command line interface) at the command line to execute PHP script # without parameters of the execution format PHP installation directory / bin /
1. About capitalization
PHP's built-in functions and structures are case-insensitive.
Such as:
hellophp
The effect of these three is the same.
Other, user-defined class names and method names are also case insensitive.
For
PHP is a simple, object-oriented, interpretive, robust, secure, high-performance, architecture-independent, portable, dynamic scripting language. PHP has a class keyword similar to java. Because you don't need a virtual machine, it's 5 times times
/*** @name name * @abstract DECLARE variable/class/method * @access indicate access rights for this variable, class, Function/method * @author function Author's name and email address * @category Organization packages* @copyright indicate Copyright
1. Modify Windows domain name
C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1 localhost
192.168.0.100 ABC127.0.0.2 A
2. Modify the Apache virtual directoryC:\xampp\apache\conf\extra\httpd-vhosts.conf
ServerName Tradesns
DocumentRoot
Do not know how to want to install php^^ a few days ago to get a wpblog and boblog play. Feel a word "strong"
First, install PHP1.php-5.1.2-win32.zip, directly to the D:\php\ directory can be stored in PHP file directory D:\php\2. Copy all DLL
Considering the use of fastcgi, but the feeling of installation is very troublesome, so still in the way of ISAPI
1. Download PHP, I use PHP 5.2 (5.2.13), VC6 x86 Thread Safe (2010-feb-24 15:33:12), Zip
2. Extract files to C:\PHP
3. Configure
Not touch PHP for a long time, slightly unfamiliar! But migrating the Web front-end to PHP is imperative!
Here is introduced in snow Leopard build nginx+php-cgi development environment!
With the MacPorts, everything is a lot easier!
Installing
Introduction to the first chapter
1> PrinciplesDefense in DepthMinimum permissionsSimplicity is beauty.Minimization of exposure
2> method
Balancing risk and availability
Tracking data
Filter inputOutput escape
Prevent form submission
When viewing a process using the Linux command ps or TOP command, you can see the percentage and size of memory consumption, where the size is the same as the Memory_get_peak_usage
The method memory_get_usage refers to the memory that is being
A document, a letter of management?
1. File operation.
Open File:
The specified file?? If the specified file does not exist, then it may be a self-portrait. Built?? File.
Resource fopen (string filename,string mode [, int
Foreach
PHP 4 (not PHP 3) includes a foreach structure, much like Perl and other languages. This is just a simple way to iterate through an array. foreach can only be used with arrays, and an error occurs when trying to use it for other data types
PHP Memory View
PHP function: memory_get_usage () View Memory usage information
Observing the memory usage of your program allows you to better optimize your code. PHP has a garbage collection mechanism, and a complex set of memory management
Today, we find that APC using PHP can also get the progress of uploading files. This article is about how to do it.
Installing APC
The first way to install the APC method and other PHP modules is no different, the Internet can find a lot of
Phpinfo
PHP Platform Setup
As a PHP learner, the first to build a test platform for PHP, then here I have my own experience to introduce how to learn PHP, I am not counted as a PHP master, but at least it is skilled, so if you are interested in PHP novice,
/*
1, first to draw a diamond to play, a lot of people learn C in the book are painted, we use PHP painting, draw half.Idea: How many lines for once, then inside spaces and asterisks for once.
*/for ($i =0; $i for ($j =0; $j Echo ';}for ($k =0; $k
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