Analysis of the relationship between the absolute path and relative path of php. Php does not seem to use "" to represent the root directory as asp does. Instead, it uses $ _ SERVER [DOCUMENT_ROOT]. Others are the same:... to represent the upper
Summary of php application path variables. Local server, domain name d.com, root path D: phpnowvhostsd.com. yii, with the requeir_onceaa.php file in the x. php code in the root directory, and aa. php requeir_onceabb.php
Local server, domain
Use absolute and relative paths in php. Let's take a look at two pieces of code: Code 1: Access [php] metahttp-equivContent-Typecontenttexthtml; charsetGBK? Phpecho $ _ SERVER [DOCUMENT_ROOT];? The imgsrc..1.jpg code is as follows:
Code 1: access
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
You have read about: can object-oriented programming help you manage your large web projects, and have you started to use PHP for object-oriented programming? If you have compiled several types of applications on your website and you are a
In-depth study on the relationship between the absolute path and relative path in php, it seems that php cannot use "/" as asp does to represent the ROOT directory, replacing it with $ _ SERVER ['document _ root'], others are the same :.. /indicates
Php obtains the php server variable in the current url path.
Programming in php to obtain the current url address and server variables mainly uses the following global variables: $ _ server ["query_string"], $ _ server ["request_uri"], $ _
PHP does not seem to use "/" as ASP does to represent the root directory, replacing it with $ _ server ['document _ root']. Others are the same :.. /indicates the upper layer .. /Indicates the current layer. If A/B/C/S. php needs to call/BB/s2.txt
In php, it seems that the root directory cannot be represented by "" like asp, and $ _ SERVER [in php does not seem to be represented by "/" like asp, replace it with $ _ SERVER ['document _ root']. the others are the same :.. /indicates the upper
Php does not seem to use "/" as asp does to represent the root directory, replacing it with $ _ SERVER [
Php does not seem to use "/" as asp does to represent the ROOT directory, replacing it with $ _ SERVER ['document _ root']. Others are the same :
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.