This is a constant in Discuz that defines the forum installation root directory. Now let's analyze this simple but very practical constant.
Define (' Discuz_root ', substr (DirName (__file__), 0,-7));This is a constant in Discuz that defines the forum installation root directory. Now let's analyze this simple but very practical constant.let's start by explaining that the absolute path to the common.inc.php file is assumed to be F:\webroot\bbs\include
included.
Define a resource package
The resource package is specified as the PHP class that inherits yii \ web \ AssetBundle. the package name is the PHP class name that can be automatically loaded. in the resource package class, you must specify the resource location, which CSS and JavaScript files are contained and their dependencies with other packages.
The following code defines the main resource packages used by the basic application template:
In the above AppAsset class, the specified
-rt.jarGrant executable permission: chmod +x startup.shOK, you can execute the./startup.sh in the Run directory, you can see the execution effect, if you want your program to run in the background, you can execute the following command:Nohup./startup.sh > Run.log WindowsRun File: Creates a new Startup.bat file in the run directory with the following contents:Java-xms1024m-xmx1024m-xmn512m-xx:permsize=256m-xx:maxpermsize=512m-jar Bboss-rt.jarOK, you can execute the Startup.bat in the run director
Define (' Discuz_root ', substr (DirName (__file__), 0,-7));
This is a constant in Discuz that defines the forum installation root directory. Now let's analyze this simple but very practical constant.
Let's start by explaining that the absolute path to the common.inc.php file is assumed to be F:\webroot\bbs\include\common.inc.php in this article.
This sentence is contained in the include/common.inc.php of Discuz, first we look at the value of the cons
users can restore the cookie and use the session again. You can leave all indexes in $ _ Session empty.2) store the webroot file of the session on the website or the webroot file stored in the database as a fileThe default path for saving sessions on the server can be hijacked, especially in a shared host environment.
5. Password1) Use strong passwordsPassword that requires numbers, symbols, upper and lowe
. node. js has a built-in FS module, so that we can read and write files. To organize a directory, follow these steps:
Myhttpserver
| _____ App. js
| _____ Webroot
| _____ Index.htm
Here, the webroot folder is the home of our static page. We hope that we will be able to access the page from the client if we lose it in the future. You can paste a few lines in the index.htm file. Later we will read them from
I. Introduction
Function: WYSIWYG. Images and Flash are supported. The toolbar is configurable and easy to use.
Compatibility: IE 5.5 +, Firefox 1.5 +, Safari 3.0 +, Opera 9.50 +, Netscape 7.1 +, and Camino 1.0 +
Maturity: widely used and used by Baidu and CSDN
Ii. DownloadOfficial download homepage: http://www.fckeditor.net/download/. the current homepage is 2.5.1.
Download FCKeditor 2.5.1(fckeditor_2.5.1.zip)and fckeditor.java(fckeditor-2.3.zip)
Iii. DeploymentIn this example,
Define ('discuz _ root', substr (dirname (_ file _), 0,-7 ));
This is a constant that defines the Forum installation root directory in discuz. Now let's analyze this simple but practical constant.
First describe this articleArticleAssume that the absolute path of the common. Inc. php file is F: \ webroot \ BBS \ include \ common. Inc. php.
This sentence is included in discuz's include/common. Inc. php. First, let's take a look at the value of the c
manages resources in the resource package. In short, the resource package is a resource set placed in a directory. when a resource package is registered in the view, when rendering a Web page, the CSS and JavaScript files in the package are included.
Define a resource package
The resource package is specified as the PHP class that inherits yii \ web \ AssetBundle. the package name is the PHP class name that can be automatically loaded. in the resource package class, you must specify the resourc
The classpath in MyEclipse is a very important question.MyEclipse in the search is based on their search, and MyEclipse have a special file to save Classpath information, this is someone else's project copy of the time required an important document, Otherwise the project will be imported into its own myeclipse error, this time it is only manual to write this fileThe MyEclipse classpath file is the ". Classpath" file in the project root directory, in the following format:First sentenceThis is th
The relative paths that are called in the JSP and class files are different.In the JSP, the root directory is webroot in the class file, the root directory is webroot/web-inf/classes of course you can also use System.getproperty ("User.dir") to get your project's absolute path.Here's how to get the path in detail in Jsp,servlet,java! Take Java Web project name MyPath as an example:get path in 1.jsp : (1)
:
Constant
Value
Describe
Tristateusedefault
-2
Open the file in the system default format.
TristateTrue
-1
Opens the file in Unicode format.
Tristatefalse
0
Opens the file in ASCII format.
Use examples:
Sub opentextfiletest
Const ForReading =1, ForWriting =2, ForAppending =8
Dim fso, F
Set fso =createobject ("Sc Ripting. FileSystemObject ")
Set F =fso. OpenTextFile ("C:\testfile.txt", forwrit
The teacher decided to use Access database to implement the final exam, I think now I have no problem, but the previous is in the JSP page to connect Access database, regardless of the way the following are connected to the practice, But now I want the Java code in my project to access the Access database, encapsulated in DAO, connected to the database in DAO, without any relationship to the Servlet API. For most people who prefer to use an ODBC data source or use an absolute path to connect to
Site may be migrated from time to time, or wrong operation, the database is gone, so, I in order to Time-saving, wrote a wordpress one-click Reinstall Script.
I'm just writing a ballpark figure. You can modify the script according to your own needs.
Conditions of Use:
This script is mainly used in the case of Web site migration, when fully reinstalled. In other words, I only import the database operation. WordPress themes and Plug-ins and other files I do not use the following script, if nece
exist. And my idea now is that the database can be connected regardless of the project on the server that supports the JDBC-ODBC machine. and execute the project. So to finish this operation, just have the MDB file in the Access database move as the project moves, so in the Java Web project. Put the MDB file under Webroot or under its subfolders. But how do you get the true path of the MDB in DAO? In fact, the idea of getting the MDB file path dynami
Define ('discuz _ root', substr (dirname (_ FILE _), 0,-7 ));This is a constant that defines the Forum installation root directory in discuz. Now let's analyze this simple but practical constant.In this article, we assume that the absolute path of the common. inc. php file is F: \ webroot \ bbs \ include \ common. inc. php.This sentence is included in discuz's include/common. inc. php. First, let's take a look at the value of the constant DISCUZ_ROOT:
To use the text editor, select FCKeditor. The following configuration describes the environment:
Windows XP
Myeclipse6.0ga
Fckeditor2.6.3
Fckeditor2.3 1. Download
Official download homepage: http://www.fckeditor.net/download/. fckeditor_2.6.3.zip is used.
And FCKeditor-2.3 version
2. Deployment
In this example, webroot is used as the application root path. The directory structure after deployment is shown in: 1、fckeditor_2.5.1.zip decompress and copy
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.