How to learn PHP from no beginning.
First, the best way to learn PHP is to have the basic knowledge:
1) HTML
2) CSS
3) JavaScript
HTML in particular, is essential to the basic knowledge, but also need to understand the general principles of
A tool that can find all the Chinese in the source code
Fill in the path you need to find $SF.
Function
1 Find all Chinese
2 Ignore Chinese in comment statements
3 You can add files and folders that need to be ignored
4 Generating log files
If
Set up
ssi~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open the settings file and look for the following text:
#
# to use Server-parsedhtmlfiles
#
#AddType text/html. shtml
#AddHandler server-parsed. shtml
Before the company has written similar things, this time is to help the previous boss wrote a simple collection program.
It's very simple. Sweat. There is no technical content.
Data Source: http://cn.finance.yahoo.co ...
Demo Address:
This post is mainly for all the phpers to their own in the development or learning of some of the experience and skills to summarize, mainly to solve a certain kind of thing better way to tell everyone.
I'll say a few first:
1, if you use echo to
I use the ADODB full version of the time, the server unexpectedly does not support,
I almost wrote a class on my own, and I realized the ADODB function so that I didn't have to change my program.
But now I use the adodb-lite, this is a simplified
Copy CodeThe code is as follows:
Class Code
{
var $width = 160; The width of the picture
var $hight = 40; Picture of the High
var $image;
var $red = 223; RGB color of the picture
var $green = 225; Red
var $blue = 227;//Green
var $pix =
Method One:
The workaround is to add the "binary" attribute to the field that contains the Chinese as a binary comparison, for example, change "name char (10)" to "name Char (TEN) binary".
Method Two:
If you compile MySQL using the source code, you
For example, Echo Number_format (285266237);
Can output 285,266,237
In addition, if you need to format the size of the file byte, the following methods can be drawn:
function Byte_format ($input, $dec =0)
{
$prefix _arr = Array (' B ', ' K ', ' M
These constants are defined in the kernel of PHP. It contains PHP, Zend engines, and SAPI modules.
Php_version (String)
Php_os (String)
Php_eol (String)
Available from PHP 4.3.10 and PHP 5.0.2
Php_int_max (integer)
Available from PHP 4.4.0 and
/* Determine if the data transfer is digital
Use regular expressions to determine if the number entered is legal
Call: Checknum (parameter 1, parameter 2)
*/
Copy CodeThe code is as follows: function Checknum ($id, $say)
{
$inid = $id;
if (!ereg ("
Finally, the server backs up the MySQL database once a day and automatically packs it, deleting the backup files 5 days ago. Share the following:
1. Environment: Windows Server 2003 + Apache 2.0 + PHP5 + MySQL 4.0.26.
2. Assuming that the PHP
One, PHP script code tag
PHP script is a special tag in the file included in the content, such as ASP is "", PHP can be seen as "
”。
However, in order to adapt the XML standard to embed PHP into XML or XHTML, PHP does not recommend using the short
One, MySQL installation
MySQL installation under the Windows platform is familiar with the standard installation welcome program.
If you do not need to change the default installation directory, click Next to complete the installation.
Follow the
Inserting Chinese is garbled, tried a lot of methods, such as I first set the VIM to: set Fileencoding=utf-8 does not work, and then think about, and vim has nothing to do with
Then try C # code, using the Encoding.UTF8.GetString () method, and then
This is the target URL we're going to collect.
-------------------------------------------------------------
Let's see how pagination is set up.
---------------------------------------------------
There's something more out of the title.
-------
Site structure
Code:
Site
┗includes
┗class.inc
┣templet
┗index.htm
┣list.htm
┗content.htm
┣index.php
┗content.php
Library structure
Code:
--Database: ' Test '
--The structure of the table ' test '
CREATE TABLE ' Test ' (
' ID ' smallint (3) not
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