Open a command prompt cmd.exe into the PHP installation directory, enter the Php.exe "abc.php" will be executed under DOS abc.php you can change the abc.php to your file name, note the directory structure I use the abc.php here directly because
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can do this, it is a string can be used as a
Because the company needs, the project behind us will be developed using the PHP ctemplate engine. Here, I am just the one months I learned, and my understanding of writing. If there is an incorrect, or inaccurate description of the place, I hope
List>>>>>>>>>>>>>>>>>>>>>>>>
Sometimes it is very convienent-do the continual assign,
Ruby:
1 a,b,c,d = 1, 2, 3, 4;
Php:
1 list ($width, $height, $type, $attr) = getimagesize ($img);
List () only works on base of a number indexed array,
This chapter describes the expressions for PHP.
The expression in PHP is no different from other languages. An ordinary assignment is an expression, a function is an expression, and a function is assigned a value. The ternary conditional operator is
Zend Server debugging after installation
There's a garbled in 1.\zend\zendserver\etc\zendenablerconf.xml to erase.
2.\zend\apache2\conf\httpd.conf DocumentRoot set it up.
DocumentRoot "C:\Program files\zend\apache2\htdocs\hkbiz\public"
P.s. Go
PHP development programs, usually PHP code and HTML mixed together, so what is the problem?
First, it is not conducive to division of labor. In general, programmers write code, and artists design pages. In this way, the programmer must wait for
Definition and usage
The Mktime () function returns a Unix timestamp for a date.
The parameter always represents the GMT date, so IS_DST has no effect on the result.
Parameters can be left-to-right and empty, and empty parameters will be set to
1.$_server["Query_string"] Find (QUERY) string
2.$_server["Php_self"] currently executing the PIN name
3.$_server["Request_uri"] the URI required to access this page
4.$_server["Script_name"] contains the path of the current script
One, environmental description:
Os:windows Server 2003 R2 Enterprise Edition SP2;
iis6.0;php-5.2.11;mysql5.1.40;
Phpmyadmin-3.2.3-all-languages
Second, configure the PHP step
1. Unzip the downloaded PHP tarball into a directory, such as c:\php
Code
Description:1.error_reporting () to set PHP's Error-level and return to the current level. It scope is the current page
2.display_errors directive in php.ini Open,
$conn = @mssql_connect ("127.0.0.1", "sa", "database") or Die ("Connection error");
mssql_select_db ("test") or Die ("without this Database");
$sql = "SELECT * from Login";
$result =mssql_query ($sql);
while ($row =mssql_fetch_assoc
Introduction: Is this a php extension configuration? The detailed page that describes the and php,php, Apache, MySQL, extended PHP extensions configuration? Relevant knowledge, skills, experience, and some PHP source code and so on.
class= '
These days are very busy, there is no suitable project to do, and did not find a good practiced hand material, thinking about graduating, and then kicked out of school ... It's a little melancholy. Anyway, graduation time has come soon, and with
Introduction: This is PHP from the HTML out of the detailed page, introduced and PHP, related knowledge, skills, experience, and some PHP source code and so on.
class= ' pingjiaf ' frameborder= ' 0 ' src= ' http://biancheng.dnbcw.info/pingjia.php?id=
The traditional way of face-process development in the processing of more than medium-sized applications, it began to appear inadequate. Even if we can quickly complete the requirements, we will be deeply trapped in the traps we set up in the early
PHP Date/time functions
Definition and usage
The strtotime () function resolves the datetime description of any English text to a Unix timestamp.Grammar
Strtotime (Time,now)
Parameter description
Time
Specifies the
Today wrote a test of the PHP class.
This is convenient for unit testing. But for the parameter processing, I feel the code is very ugly, there is no expert to help, beautify it.
Parameters are always not dynamic.
Call Test ("365",
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