I. BACKGROUND notesIn the project development process, the local development uses the Windows+tomcat, in the production, becomes the linux+weblogic. After the project is deployed, an error is applied to show that the Get app directory returns
Directory path issues
Bishe is the root directory that contains a
First-level directory regist. PHP and Control folders, index.php
The second-level directory control folder contains the register. Php
Register. PHP inside Jump statement to index.php
The system data storage path is as follows: where the application package name is: COM.SPTThe Contextwrapper class contains the following methods:1. Getfilesdir ()--Internal storage @Override public File Getfilesdir () { return
MySQL default directory in/usr/local/mysql/var, we will modify the directory to/data1. Stop MySQL#/etc/init.d/mysql Stop2. Edit the MySQL configuration file to change the path after DataDir to/data.Vi/etc/my.sql650) this.width=650; "src=" Http://s1.5
Reprinted from: http://www.cnblogs.com/yipu/archive/2013/03/13/2956957.htmlWhen we use the Finder to browse the file, the name of the current directory is displayed in the center at the top of the title bar. In the ointment, however, when the
As shown in the figure:
You can return a directory path.
The operation is as follows:
function Browsefolder () {
try{
var message = "Please select folder";//selection box hint info
var Shell = new ActiveXObject (" Shell.Application ");
Under Windows, you can use "/" or "\" to represent the directory hierarchy, while Linux can only use "/", and there is no concept of a drive letter under Linux, only the "/" symbol represents a unique root directory. Therefore, using a variable to
This is a creation in
Article, where the information may have evolved or changed.
Os/user
In general, we can use os/user the functions provided by the package Current() to obtain user information:
User, Err: = user. Current () if nil = = Err
1: string basename (string path [, string suffix]);A string containing a full path pointing to a file is provided. This function returns the basic file name. If the file name ends with suffix, this part will also be removed.In Windows, both slash (/)
The main use of the Location object, containing information about the current URL, is a part of the Window object that can be accessed through the Window.location property.
Method One (Window.document.location.href/window.document.location.pathname)
When using Python, you will always encounter the use of path switching, such as the test.py under folder test to invoke the Data.txt file under the Data folder:
.
└──folder
├──data
│ └──data.txt
└──test
└──test.py
A method
In fact, modify the registry can solve this problem, the following for you to introduce how to modify the software default installation path, in Windows XP and Windows Vista, Windows7 modified method is the same!
1. Open the Registry Editor by
Gets the current file name, current directory, upper directory
File name test.phpPath + file name (to get/var/www/test/test.php)Echo __file__;File name (to get test.php)Echo basename (__file__);File name with no extension (to get test)Echo
7.9 "Linux learning is not difficult" file directory Management (9): MV command file and directory renaming, moving files and directory pathUse the MV command to change the names of files and directories and to move the paths of files and
Right-click the MAVEN project, in the source option of the Java Build path option, select Output folder
Click on the Edit button to change maven's original Java file compilation directory and click OK.
The original Maven Java file is saved in the
1. The page resource files can only be placed under the Webroot, such as Css,js,image and so on. It can't be quoted under Web-inf.
2. The page is placed under the Web-inf directory to restrict access and improve security. such as jsp,html
3. You
Configuration method:
Tomcat 5.5/server.xml file, adding between :
Workaround:
The following is the Tomcat 5.5/conf/web.xml file content: (You look for it, as if it were this directory)listingsfalsethe default value of is False, modified to
2. File and directory Operations managementThis section focuses on how to use commands to manipulate files and directories under Linux, such as PWD, CDs, LS, and so on.2.1 pwd: Show working directory pathUse the PWD command to display the absolute
This article mainly introduces the PHP template engine smarty in detail. This article describes the advantages of smarty and smarty, the places that are not suitable for using smarty, And the smarty directory structure and version, for more
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.