and remove the path Ming, in this case, it removes the filename, it gets the path name
$ ls-l/very/long/path/name/file-name.txt
$ ls-l!!:$:h
ls-l/very/long/path/name
11. Remove all boot paths from the word use: t
This is obviously the opposite of the previous example
In the next example, "!!:$:t" gets the last parameter of the previous command, removing all the boot path names and only the filename.
$ ls-l/very/long/path/name/file-name.txt
$ ls-l!!:$:t
ls-l file-name.txt
12. Remove fi
create a new directory in the Web publishing directory like XCache, put the Lib and htdocs directory inside the official ZIP package,
In the browser input http://127.0.0.1/xcache/htdocs/, will pop up a login Account password dialog box, input, you can see the XCache environment and configuration, variables and so on.
But in fact xcache not only can cache variables, but also can cache PHP files, if your PHP environment is configured with XCache extensi
uses for this call, such as open, edit, print, and so on shell operations. All component information that implements the shell extension is installed under the Windows registry hklm\software\microsoft\windows\currentversion\explorer\shellexecutehooks. Before Windows Explorer performs a shell operation, it finds the registered Shell extension component in the registry and instantiates it, and each shell extension component must implement at least the Ishellexecutehook interface, which provides a
Spring uses Propertyplaceholderconfigurer extensions to meet parameter configurations for different environments,
From: http://www.javaarch.net/jiagoushi/548.htm
Propertyplaceholderconfigurer is spring, which provides us with the unified management of some environment variables (database connection parameters, file paths, etc.), and then specifies the corresponding variables in the bean. But often the development environment, the test environment, th
Recently flv.js things seem to have ignition, and again to the MSE this thing to bring up.MSE (Media source extensions) is a new function of HTML5, and the general function is to realize streaming media function.If the MSE with WEBRTC and JS binary processing, then you can implement the server to send video to one of the browser users, the browser users will then transfer video streaming to other users of the function. is a web-side in the Peer-to-pee
Soap Extension (SOAP extensions) can encapsulate reusable functionality. For example, the previous article is about access control for services through the SOAP header. In this essay we will use the SOAP extension to do the encapsulation of verifying the user's identity with the SOAP header and to solve the problem of unsafe transmission of identity information by netizens.
First, introduce a few related classes. The System.Web.Services.Protocols nam
The life cycle of PHP is detailed
A Study of PHP variables
PHP Memory Management Detailed
Installing the Build PHP environment
Write the first PHP extension
The return value of the PHP function
PHP extension Functions Accept Parameters
How PHP works on arrays and hash tables
Resource data types for PHP
PhP4 the object of the detailed
Detailed PHP5 Object
Detailed PHP startup process
INI Settings for PHP
Streaming Access in PHP
The realization of streaming in PHP
Interesting stream
Recent projects to use Ajax, so the various ajaxframework after comparison, finally chose Prototype.js, because Prototype.js is a very basic ajaxframework, Need to do some expansion according to the requirements of the project, here are some extensions I have done, if wrong, please correct me!
I realized a Form.Element.ValidationObserver, this class needs to rely on validation.js and corresponding CSS (Validation-advice), This class is to the form of
base class for all classes.
It has two properties: constructor (equivalent to. NET, suggests an object function reference, and for the object class, the reference points to the local object () method. A reference value of the prototype object in the prototype object that reflects the properties and methods of prototype extensions in each object, and also uses this attribute class to extend and reflect classes in asp.net ajax.
hasOwnProperty-Determi
The person who used the PC must know that Windows is very sensitive to file extension, a JPG picture, renamed when the ". jpg" was deleted, the result--windows did not know it.
What about Linux? That dude doesn't look at the extension, and the software is named ". txt", so it can be executed. As for Apple Mac OS X operating system, basically between Windows and Linux-the extension is to see, but never like Microsoft's superstition file extension suffix.
Details are as follows
Mac OS X operati
Tags:attrhostname share values intocontentconnectcut Test results: In fact, after many tests, PDO and mysqli the implementation of the same efficiency. Use Mysqli and PDO extensions in PHP to test the execution efficiency of your MySQL database.
parameter of the//SQL statement is replaced with a placeholder, usually used? Method Two: $stmt = $mysqli->stmt_init ();//Get a Mysqli_stmt object $stmt->prepare ("SQL statement"); Binding parameters using the Bind_param () method The order of the binding parameters should correspond to the order of the parameters represented by the placeholders in the preprocessing statement I represents all integer types D denotes double and float types s denotes all other types (including strings) b indicate
. Download Php_mongo extension:wget http://pecl.php.net/get/mongo-1.6.12.(if download is slow, you can manually download and upload the server, manually download the reference address: Http://pecl.php.net/package/mongo)2, unzip, enter the directory:tar -xvzf mongo-1.6. A CD MONGO-1.6. A3, compile, install:phpize. /configure--with-php-config=/usr/bin/php-configmake doinstall4, modify the php.ini configuration file, add a bit of content:Extension=mongo.so5. Restart PHP-FPM:Systemctl Restart PHP-
Tags: mongodb phpHiI ' m running Alpine 3.3 in Docker with the testing repo for PHP7 packages, after installing Php7-pear, and trying to run PE CL I get a bunch of warnings/notices:~ # PECLWarning:invalid argument supplied for foreach () in command.php on line 249Warning:invalid argument supplied for foreach () in/usr/share/php7/pear/command.php on line 249notice:undefined Index:honorsbaseinstall in role.php on line 173notice:undefined index:installable in role.php on line 139notice:undefined In
, (SELECT COUNT(OpenID) as 'Number of winners' fromwin) A4, (SELECTOpenid as '5th Award-winning staff, OpenID' fromWinWHEREWintime like '%05') A5;-----Query the total number of users, sign the total number of check-in, total sign-in, win-table winners statistics and information on the winners of the day 5thThe results are as follows:It is important to note that the results and naming of each subquery must be unique, and the number A1, A2, which is defined later, must be unique, otherwise it wi
Tags: mysq build location type PHP Source OCA alt Phpize ErrIn PHP, the Mysql_connect module has been gradually deprecated, I did not install the MySQL extension when setting up the environment, but today in the maintenance of an old project, an error occurred Fatal error:uncaught error:call to undefined function mysql_connect () So Google, found that if both PHP and MySQL have been installed, you can use the Phpize tool to manually compile the build mysql.so extension to solve Here are the step
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.