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 PHP function that can delete HTML tags in a string
Author: limote
When a guest comments and posts, we do not want visitors to use the HTML tag in the message and post, so when the guest submits the message and the post, I have to delete the
-------------------------------Forum--------------------------
Data Sheet
CREATE TABLE guest (ID int not NULL auto_increment,primary key (ID), title varchar (), email varchar (homepage), varchar ( (), name varchar (+), text text,relay int,r_time
Infinite class classification, mainly by storing the ID of the parent classification and the classification path to achieve. Since the structure of the data is simple, I can only think of the recursive way to show the relationship of the
$_server[' http_referer '//can get the address of the previous page
$_server[php_self]//Get the current page address
$_server["Http_host"].$_server["Php_self"]. "?". $_server["query_string"]//This can get the address with the parameter
If you use
int imagecreatefromgif (string filename);
To take out a GIF format graphic, draw a graphic on it when the background or basic canvas sample is used, and note that:
If there is no pigment in this file, you will not be able to use
This PHP database connection class, it should be the simplest of a connection class, but also the best to understand a connection class. As a starting point for starting PHP's programming journey. I saw a lot of internet-based MySQL database
Install pear under Windows XP
Environment: PHP4.3.10 + Windows XP
Installation steps:
1) Pre-installation work
After installing PHP, there is a Go-pear.bat file under the folder that is created
(Mine is C:/php/go-pear.bat)
2) Execute installer
The cache refers to the temporary file Exchange area, the computer put the most commonly used files from memory to put in the cache temporarily, just like the tools and materials on the workbench, this will be more convenient than the time to go to
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 =
20 hours to read the goal of the station, you can modify, see how to get the other station, very simple.
chuanqi.php//Thief
Copy CodeThe code is as follows:
Extract ($_get); extract ($_post);
$clinchurl = "http://www.haosf.com"; Target
Today is ready to start learning PHP aspects of things, just the same dorm with a few colleagues are PHP master, to ask him some basic questions, I recommend a few PHP to learn the Web site, in this post to share
first, the role:
~~~~~~~~~
PHP only in the HTTP protocol to the HTML document header to the browser, tell the browser how to deal with this page, as for the content of the transfer will need to familiarize yourself with the HTTP protocol, not
Author: Limodou
Objective
In fact, it is a technology, perhaps not the real technology. This is only the way I have thought of the page processing, of course, other people's ideas may be consistent. But I still want to give it a nice name. So what
To load objects automatically:
Many developers write object-oriented applications to create a PHP source file for each class definition. A big annoyance is having to write a long list of included files at the beginning of each script (one file per
Definition of the class:
Start with the keyword class followed by the class name, which can be any non-
PHPThe name of the reserved word. Followed by a pair of curly braces containing the definitions of the class members and methods.
Pseudo
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