php

Apache+PHP configuration

Apache+PHP Apache server installation configuration in WindowsDownloadApacheConfigure Apache1. Unzip2. Execute httpd.exe to install the Apache server3. Configure a single project in Apache4. Configure multiple projects in Apache PHP configuration in WindowsDownload PHPApache configure PHP Apache server installation configuration in Windows DownloadApache Apache download address1. Click Download in... »

A brief discussion on four defense methods of SQL injection

I recently learned that interviews with security companies ask a lot of questions about some principles and injection types of SQL injection, and even SQL injection defense methods. SQL injection is really the veteran of web vulnerabilities, famous and extremely harmful. Here I will briefly share the four SQL injection defense methods I summarized to deepen your understanding so that you can use t... »

POST request

Uplink messages are information HTTP requests are in pairs, and if there is a request, there will be a response. Called “upstream request” and “downstream response”. No matter what kind of request it is, data will be transmitted in the form of “header” + “message” Generally, the uplink message of the uplink request is empty, and the downlink message ... »

PHP GD library generates image watermarks

* index.php <?php /** * Created by PhpStorm. * User: mingzhanghui * Date: 9/24/2019 * Time: 12:47 */ include "autoload.php"; // avatar picture $dstPath = dirname(__FILE__)."/image/avatar.jpg"; // Flag image $srcPath = dirname(__FILE__)."/image/flag.png"; /** @var $dataDst string image content */ $dataDst = file_get_contents($dstPath); $dataSrc = file_get_contents($srcPath); $dst = imagecreatefr... »

tp5.1 using apidoc

1. Install tp5.12. Install apidoc plug-in Open the browser and visit http://your domain name/apidoc/. The interface documentation page will appear, indicating that the installation is successful. If a 404 error occurs, please visit the following link to troubleshoot: Page 404 Error | ThinkPHP-ApiDoc Simple to use: Take the app\index\controller\index controller as an example <?php namespace app\... »

One hundred thousand sets of source codes for computer graduation projects to choose from [Java, .net, php, etc.]

write in front 💟Source code acquisition:You can get the blogger’s contact information via private message on the homepage or at the end of the article. 🎈Source code type:Including SSM, SpringBoot, .net, php, etc.The following shows the operation results of some projects SSM projects and video effects serial numberproject nameProject running video effect1Chinese language online examination systemCh... »

How to run MySQL in a Docker container

This guide explains step-by-step how to set up a new MySQL server running in a Docker container in minutes. DockerOne largeadvantageis that you can quickly use it to try out an application without having to install it directly on your machine. You can use Docker to run your database in a container as if it were a remote server and test how your application interacts with it. Using Docker container... »

How to insert a column in Pandas DataFrame

Often, you may wish to insert a new column into a Pandas DataFrame. Fortunately, using pandasinsert()function, which uses the following syntax: insert(loc, column, value, allow_duplicates=False) Where: loc: The index of the inserted column. The first column is 0.column: The name to give the new column.value:Array of values ​​for the new column.allow_duplicates: Whether to allow new column names to... »

The difference between str_replace, strtr, and preg_replace

The string replacement module in php has 3 functions, str_replace(), preg_replace(), and strtr(). In the process of programming, the execution efficiency of these three functions is different. The execution efficiency of the str_replace() function is faster than that of the preg_replace() function, and the execution efficiency of the strtr() function is higher than that of str_replace(), so it is ... »

[Graduation project final major homework super high score project] html+php to realize the library management system in detail

The download link is at the end of the article. The functions of this project are roughly as follows: reader: 1. Check the status of books in the library; 2. Borrow books; 3. Return books; 4. Check your own borrowing records; 5. Check your own fine records; 6. Change your password. General administrator: 1. Check the status of books in the library; 2. Check the borrowing records of books; 3. Put n... »

Page 1 of 25123»