Content: First, install APACHE1.3.9 (Configure the httpd.conf file under the Conf directory)1. #BindAddress * Change to bindaddress 127.0.0.1#Servername new.host.name to Servername localhost2. Get your Apache to support PHP4. Add the following
Recently prepared to make a few PHP Web site, so need to install a PHP server in their own computer, has not touched php,apache,mysql these things for a long time, so I stole a lazy directly under a package software called Appserv, it can be
Generate thumbnails is when we want to upload a picture if the picture is large we need to generate a small size of a specified image to display on the list page, so that the use of saving resources is also now common practice, I would like to share
Session_Start ();
Header ("Content-type:image/png");
$str = " The first is in the big and the main person for the people on the labor to move to the domestic with me to he will be a sub-class on the level of the level of righteousness to the
To replace all the images or the alt title of the connection, we must use the regular function, see a replacement picture Alt instance
*/
preg_replace (' #alt = ' [^ ']* ' #i ', ' alt= ' ". $title." ", $str);
/*Mixed preg_replace (mixed
$oimg = "Test.jpg";//original image Name$classes = Array (' translation ', ' autoheight ', ' autowidth ', ' Stretch ');//give classes for the new creating images ' size Which is defined in the specified INI file$suffix = ' jpg ';//the new image ' s
Today I would like to introduce to you about the PHP-FPM process shutdown and restart command bar, PHP-FPM is a PHP fastcgi manager, is only for PHP and PHP5.3.3 has been integrated PHP-FPM, is no longer a third-party package Oh.
First, to
Cookies are used to store information in the client browser, we can use cookies to record some of the user's information, such as webmaster statistics code based on cookies and IP to achieve, I would like to introduce the use of cookies and
Today we are going to show you how to judge the value of the element we are looking for in the array Oh, here is a one-dimensional data directly in_array but multidimensional data is a bit more complex.
Let's take a look at In_array. Checks if a
PHP upload images and proportionally generate the specified size map This is an image thumbnail function Oh, put the new image upload to $srcfile and then do the file press $thumbwidth to reduce the maximum size of the width of the chart and
This article to the students to introduce a PHP batch setup IIS directory instance code, I hope this tutorial will help you.
The code is as follows
Copy Code
Gets the file directory list, which returns the
Adv0.jpg is the background image, note that the function corresponds to the picture format$im = Imagecreatefromjpeg ('/www/law/images/demo/adv0.jpg ');$font _color = imagecolorallocate ($im, 0, 250, 10); This is the text color, green$text = "Zhang
This article mainly introduces the method that Yii realizes the master-slave reading and writing separation of the multi-database, and realizes the separating function of the master-slave reading and writing by the extension of the Yii database
A good simple database connection class program, there is a need for PHP MySQL database connection class can refer to this article.
The code is as follows
Copy Code
br>!--? PHPrequire_once ("mssql.class.php"); //1. Create
In PHP to take the whole function has four functions, such as Floor,ceil,round,intval these several, below I give you to each of them to introduce the application of the example.
Floor House de -Rounding syntax format: Float floor (float
This article shares an article about the PHP MySQL replacement string method, the need for students can refer to.
The code is as follows
Copy Code
function replace () {$sql = Db_query ("Select
This article to introduce to you an original ecological ajax+php non-refresh Huitie and registration test examples, if you are interested in this can not enter the reference OH.
First look at the Xin.sql database, we can directly copy and save to
We often in the operation of the image will have a watermark thumbnail and watermark can be assigned to the optional, 1 for the left, 2 for the left, 3 for about, 4 for the middle left, 5 for middle, 6 for the right, 7 for the next, 8 for the next, 9
A realization of the generation of the implementation of the small graph function code, there is a need for friends to refer to, each has a detailed description of the parameters.
The code is as follows
Copy Code
Download the following files to/usr/local/src/
Apache (the most popular Web server platform for UNIX platforms) 2.tar.gz
MySQL (the best mix with PHP) -5.0.22.tar.gz
PHP (as the current mainstream development language) -5.1.2.tar.gz
Unzip:
#tar Xvz (
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