The GD library is one of the most commonly used image processing libraries in PHP (the other is ImageMagick), which can generate images, verification codes, watermarks, thumbnails, and so on. To use the GD library, you first need to open the GD
In the Windows environment, we can use Php.exe to run PHP files on the command line. Here are 2 ways to use Php.exe.
First, we can use PHP command plus PHP file + path to execute the specific PHP file.
The specific running code is as follows: PHP
Mac installation Homebrew
Ruby-e "$ (Curl--insecure-fssl Https://raw.githubusercontent.com/Homebrew/install/master/install)"
Mac Uninstall Homebrew
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Use
basename-returns the file name part of the pathdirname-returns the directory part of the path
Copy Code code as follows:
String basename (String $path [, String $suffix])
String DirName (String $path)
Example:
Copy
This article describes the PHP based on WebSocket to build a simple chat room practice. Share to everyone for your reference. Specifically as follows:1. Preface
There is a simple chat room in the company game, understand after know is
Data | database | Problem database related issues
This section discusses the most common problems between PHP and the database. In exaggeration, PHP can almost operate all the databases that are available on the market today.
1. I've heard that PHP
PHP provides autoload to help us facilitate the inclusion of files, but AutoLoad is not as capable of handling all the situations as it is, and today it's time to take a look at some of the autoload problems that have been encountered in the past
Crontab is a Linux-led command.Ways to make PHP run automaticallyThere are a number of ways to automate PHP, which are divided into the following DZ and some methods that are done through the system and directly trigger the operation of the resident
In the Windows7 Control Panel-Program "Turn on/Off Windows", open IIS inside, and don't forget to open the CGI (this default is not optional) in IIS, as shown below (don't cut yourself, just use Microsoft's diagram):
Then it's OK, wait for the
installation configuration and connection of win2003+iis6+php5.3.8+mssql2008(This method applies to PHP 5.3 and later, SQL Server 2000/2005/2008)---------------------------------------------------------------------------------------------------------
Recently familiar with the Windows host Web environment, and today I encountered the IIS consolidated PHP 500 error problem, so the Internet to find a tutorial to solve the problem, and here to share with you.
1. To select the CGI script when
Environmental Os:centos 5.8 x86_64
This script is slightly modified than the previous one, as follows
#mkdir/etc/yum.repos.d/backup #mv/etc/yum.repos.d/*.repo/etc/yum.repos.d/backup/#mv/tmp/lamp/ftp.repo/etc /yum.repos.d/#yum Clean all #yum
After setting up the LNMP environment, the PHP and MySQL services are guaranteed to run properly, and test whether PHP can connect with MySQL, the result is error.Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘
Create a data migrationTo create a migration using the Artisan command-line migrate:make command: (used in command-line mode) PHP Artisan Migrate:make create_users_table All migrations are stored app/database/migrations under Folders, and files are
This article mainly introduces the Win2012 R2 iis8.5+php (FastCGI) +mysql Operation Environment Building tutorial, the need for friends can refer to the followingPrepare the articleFirst, environmental description:Operating system: Windows Server
PHP/*Custom Delete functions that can delete files and recursively delete folders*/ functionMy_del ($path)//to customize the My_del function, the function has a parameter ($path). When calling the My_del () function, we also pass a path (e.g. ' PHP '
The latest bingo. js version is requiredDownload bingo. js and this DEMO
Method:PageSwitch (url, listDiv, pageSwDiv, maxRows, queryStr, defaultpage)// Url: the address of the request's background processing page; listDiv: The Region ID of the
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.