Mysql+php+apache+wordpress environment building experience

Mysql+php+apache+wordpress environment building experience

I want to start a blog these days, but just setting up a local development environment took me two days, and I kept going back and forth between various versions and errors. Because this is very frustrating, I thought it was necessary to share my solution with everyone. Here I mainly share with you my solutions to some errors. As for the specific operations, you can check out the reference materials I gave. I want to set up a blog these days, but just setting up a local development environment took me two days, and I kept going back and forth between various versions and errors. Because this is very frustrating, I thought it was necessary to share my solution with everyone. Here I mainly share with you my solutions to some errors. As for the specific operations, you can check out the reference materials I gave. By the way, my environment is win7 + mysql server5.5.20 + apache2.2.25 + php5.3.29 + wordpress2.7 (php and apache are both installation versions, not installation-free versions). Reference materials: MySQL installation detailed graphic version (V5.5For Windows) http://www.jb51.net/article/28362.htm Complete uninstall of MySQL http://blog.sina.com.cn/s/blog_675ce92f0100ryv9.html php + mysql +apache + wordpress full installation record – stupid kid…

WindowsCacheExtensionforPHPMore introduction

WindowsCacheExtensionforPHPMore introduction

Today the IIS team released the beta version of Windows Cache Extension 1.0 for PHP, which is a PHP accelerator used to improve the speed of PHP applications running on Windows systems. Any PHP application can use it to speed up without modifying any code. All that is required is to enable this extension in the PHP engine. Install Windows Cache Extension Today the IIS team released the beta version of Windows Cache Extension 1.0 for PHP, which is a PHP accelerator used to improve the speed of PHP applications running on Windows systems. Any PHP application can use it to speed up without modifying any code. All that is required is to enable this extension in the PHP engine. Install Windows Cache Extension 1.0 for PHP – Beta Or download: Windows Cache Extension 1.0 for PHP 5.2 – BetaWindows Cache Extension 1.0 for PHP 5.3 – Beta Follow the instructions in the “Using Windows Cache Extension for PHP” article to install, enable and configure this extension. Note: This extension can only be used with non-thread-safe versions of PHP This extension can only be used with For PHP running on IIS in FastCGI mode Windows Cache Extension 1.0 for PHP…

PHP draws gradient color picture

PHP draws gradient color picture

Original text at: http://planetozh.com/blog/my-projects/images-php-gd-gradient-fill/ The usage example is as follows, the basic function is encapsulated in gd-gradient-fill.php , require_once(‘/path/to/gd-gradient-fill.php’); $image = new gd_gradient_fill($width,$height,$direction,$startcol Original text at: http://planetozh.com/blog/my-projects/images-php-gd-gradient-fill/ Usage examples are as follows , the basic functions are encapsulated in gd-gradient-fill.php, require_once(‘/path/to/gd-gradient-fill.php’); $image = new gd_gradient_fill($width,$height,$direction,$startcolor,$endcolor,$step); gd_gradient_fill has 5 necessary parameters and an optional parameter: integer $widthWidth of the image integer $heightHeight of the image string $directionThe shape or direction of the gradient, which can be any of : vertical, horizontal, ellipse, ellipse2, circle, circle2, rectangle, diamond. string $startcolorGradient start color, 3 or 6 digit hexadecimal (“#ff0” or “#dd4578” ) string $endcolorGradient end color Optional : $stepBreaks the gradient smooth blending The following are some examples, the color gradient from #101040 to #a1a1ff, the gradient direction is different, you can see the prompt information by moving the mouse over the picture. In addition, this function can also handle non-rectangular images. The attached function source code is as follows: width = $w; $this->height = $h; $this->direction = $d; $this->startcolor = $s; $this->endcolor = $e; $this->step = intval(abs($step)); // Attempt to create a blank image in true colors, or a new palette based image if this fails if (function_exists(‘imagecreatetruecolor’)) { $this->image = imagecreatetruecolor($this->width,$this->height);…

Implement DataGrid function through PHP

Implement DataGrid function through PHP

Welcome to the Linux Community Forum, interact and communicate with 2 million technical staff>> Enter Recently I want to make something that implements the DataGrid function through PHP, so that the contents of the tables in the database can be directly modified without development. So I searched online and found that there are several similar things, both open source and paid, but they are basically based on MySQL. Due to the need to connect Or Welcome to the Linux Community Forum and interact with 2 million technicians >>Enter Recently I wanted to make something that implements the DataGrid function through PHP, so that the contents of the tables in the database can be directly modified without development. So I searched online and found several similar things, both open source and paid. Yes, but they are basically based on MySQL. Since it needs to be connected to Oracle, I personally feel that phpMyDataGrid is relatively easy to get started with in terms of secondary development and page style. This article first introduces the usage based on MySQL, and then briefly introduces the secondary development of Oracle connection (based on sqlrelay). 1. Create test database and tables The following is the quoted…

PHP technology develops WeChat public platform

PHP technology develops WeChat public platform

This article mainly introduces the two modes of WeChat public platform (editing mode and development mode). As the name suggests, the editing mode is to write ordinary functions, and the development mode has more functions. The following is mainly for development mode to introduce, The following is an introduction to the development process of the WeChat public platform through pictures and texts. The specific content is as follows: WeChat public platform has two modes: editing mode and development mode. Common functions can be accessed through edit mode. Development mode has more features. Let’s use development mode to develop helloword The steps are as follows: Step one: Register a public account (https://mp.weixin.qq.com) Step 2: Register sae() as your server. Step 3: Log in to the WeChat public platform (https://mp.weixin.qq.com) to view the development documents and download the official demo. Make appropriate modifications. Step 4: Compress the code into zip format and upload it to the sae platform. Step 5: Log in to the WeChat public platform and enter the developer center. Open “Server Configuration”. Step 6: Success. Let’s get started: 1. First register a public account (https://mp.weixin.qq.com) 2. Register sae() After registering, remember to perform real-name authentication, otherwise there will be…

PHP array traversal syntax explanation

PHP array traversal syntax explanation

Welcome to the Linux Community Forum and interact with 2 million technicians>> Enter PHP is a scripting language for WEB development. I think everyone has a deep understanding of it. Here I will talk about PHP Let’s discuss array traversal with you. I hope it will be helpful to you. Detailed explanation on the installation of Apache 2.0 and PHP5.0. Expert guide to PHP installation and configuration. Mainstream Apache 2 PHP Welcome to the Linux Community Forum and interact with 2 million technical staff>>Enter PHP is a scripting language for WEB development. I think everyone has a deep understanding of it. Here I Let’s discuss with you about PHP array traversal. I hope it will be helpful to you. Detailed explanation on the installation of Apache 2.0 and PHP5.0 Expert guide to PHP installation and configuration Introduction to the installation and use of mainstream Apache 2 PHP5 In-depth study of PHP configuration Detailed introduction to PHP array loop operations We all realize the superiority of arrays, and now we will learn how to traverse data in PHP arrays. The application of this method of operating arrays is very common, and I believe you will master it well. For example, your…

Play with PHP’s GD library Wang Zebin

Play with PHP’s GD library Wang Zebin

The GD library in Php mainly provides a set of Php graphics processing functions. It is very powerful and can produce dazzling effects. In Web2.0 applications, you will encounter it more or less. So when you apply for a Web2.0 website PHP engineer, you will often be asked about the GD library. In fact, the GD library functions in php are relatively simple, and you generally know their functions The GD library in Php mainly provides a set of Php graphics processing functions. It is very powerful and can produce dazzling effects. In Web2.0 applications, we will encounter it more or less. So when you apply for a Web2.0websitephp engineer, you will often be asked about the GD library. In fact, the GD library functions in php are relatively simple. You only need to have a general understanding of their functions. I have provided a few small examples to help you remember and understand. The source code of the following examples can be downloaded at the following address:http://wangzebin.blog.51cto.com/attachment/200902/653300_1235091601.zip. 1. Chinese character verification code Usually on websites, verification codes like to use a combination of numbers or characters, but for some valuable website services, more stringent verification codes may be required.…

[Original] How did I teach my female classmates to develop PHP from scratch (3)

[Original] How did I teach my female classmates to develop PHP from scratch (3)

After reading a lot of comments, they all said that there is no truth without pictures, and the high-definition and uncensored pictures were promised. In order to respond to many calls, and with the consent of the girl, I will post a picture today. Bar. Don’t be disappointed yet, and don’t say I’m a liar. Looking at the chat content, it is actually easy to make a girl happy. When teaching her to learn something, give her a sense of accomplishment and make her feel that she has really learned I read a lot of comments, and they all said “No pictures, no truth”, “The promised high-definition and uncensored big pictures”. In order to respond to many calls, with the consent of the girl, I will post one today. Take a picture. Don’t be disappointed yet, and don’t say I’m a liar. Looking at the chat content, it is actually easy to make a girl happy. When teaching her to learn something, give her a sense of accomplishment and make her feel that she has really learned something and made progress. Then she will naturally be elated and feel that the time has passed. Come on, I feel good staying…

Call Alipay PHP interface API to realize online instant payment function (UTF

Call Alipay PHP interface API to realize online instant payment function (UTF

This time, the order function is to be implemented in the project, so online payment must be completed. Online payment generally has two methods: online banking payment and third-party payment (Alipay, paypal, etc.). For the sake of simplicity, first To complete the Alipay online payment function, since the project is based on the Yii framework and uses UTF-8 encoding, it is obviously necessary to use the PHPUTF-8 related API in the Alipay interface to implement it. This time, the order function is to be implemented in the project, so online payment must be completed. Online payment generally has two methods: online banking payment and third-party payment (Alipay, Paypal, etc.). For the sake of simplicity, the Alipay online payment function is completed first. , since the project is based on the Yii framework and uses UTF-8 encoding, it obviously needs to be implemented using the PHP UTF-8 related API in the Alipay interface. Before the formal test, prepare several fields: Alipay account number, partner ID bound to the Alipay account and security verification code key. Before testing, you must first go to http://club.alipay.com/read.php?tid=9976972 to download the latest relevant interface. Because I use the instant payment function, I download the instant payment…

10 helpful tips for PHP

10 helpful tips for PHP

1. Use the ip2long() and long2ip() functions to convert the IP address into an integer and store it in the database. This method reduces the storage space to nearly a quarter (15 bytes for char(15) vs. 4 bytes for integer), it is simpler to calculate whether a specific address is within a section, and Speeds up searching and sorting (although sometimes just a little faster 1. Use the ip2long() and long2ip() functions to convert the IP address into an integer and store it in the database. This method reduces the storage space to nearly a quarter (15 bytes for char(15) vs. 4 bytes for integer), and it is simpler to calculate whether a specific address is within a section. , and makes searching and sorting faster (although sometimes just a little faster). 2. Use the checkdnsrr() function to verify whether the domain name exists when verifying the email address. This built-in function can confirm that the specified domain name can be resolved into an IP address. The user comments section of the PHP documentation for this function has a simple user-defined function based on checkdnsrr() that verifies the validity of the email address. For those guys who think their email…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索