__FILE__ is a magic constant that gets the full path and file name of the file. If used in the included file, the included file name is returned.
Here we introduce the difference between GETCWD and DirName (__file__) by example.
The code for the
Local server, domain name http://d.com, root path D:\phpnow\vhosts\d.com.yii, relative root directory owning file/x.php code requeir_once/a/a.php, and/a/ a.php and requeir_once/a/b/b.php ./x.php
$_server["Http_host"]: "d.com"//HOST of the
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
PHP class for generating static pages. Copy the code as follows :? Phpclasshtml {var $ dir; dirforthehtmls (without) var $ rootdir; rootofhtmlfiles (without): htmlvar $ name; html file storage path var $ dirname; specified file
The code is as
I. Introduction to the function1. Put the deleted files in the Recycle Bin2. Recovery of deleted files3. Implementation of the Linux RM command function, using almost the Linux system with the RM, command exactly the same4. New features: Rm-l, RM-E,
Copy CodeThe code is as follows:
Class HTML
{
var $dir; Dir for the htmls (without/)
var $rootdir; Root of HTML files (without/): HTML
var $name; HTML file storage Path
var $dirname; The specified folder name
var $url; Gets the source page address
PHP deletes the specified folder 1, prefaceTarget: PHP Deletes a specified directoryPHP functions used: Is_dir,opendir,readdir,scandir,rmdir,closedir, et cetera (note: Other file manipulation functions can also be completed, here only the function
Phpdirname (_ FILE _) and _ FILE _ constants. In php, dirname () and _ FILE _ are our constants. This article will give you a detailed introduction to some issues in the use of dirname () and _ FILE _ constants, if you are interested, go to the
Copy CodeThe code is as follows:
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML file storage Pathvar $dirname; The specified folder namevar $url; Gets the source page address of the
This article is mainly for everyone to bring a PHP delete the specified folder of the example explained. Small series feel very good, now share to everyone, also for everyone to make a reference. Follow the small series together to see it, hope to
PHP class for generating static pages
The code is as follows:
Class html{Var $ dir; // dir for the htmls (/)Var $ rootdir; // root of html files (without/): htmlVar $ name; // html file storage pathVar $ dirname; // The specified folder name.Var
Copy Code code as follows:
Class HTML
{
var $dir; Dir for the htmls (without/)
var $rootdir; Root of HTML files (without/): HTML
var $name; HTML File Store path
var $dirname; The specified folder name
var $url; Gets the source page
Today, the SHUIPFCMS program adds remote attachment capabilities. Is the use of FTP implementation, the following posted a phpcms V9 inside an FTP processing class, roughly speaking how to implement the remote attachment.
FTP Class source code:
Copy CodeThe code is as follows:
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML file storage Pathvar $dirname; The specified folder namevar $url; Gets the source page address of
CopyCode The Code is as follows: Class html
{
VaR $ dir; // dir for the htmls (/)
VaR $ rootdir; // root of HTML files (without/): HTML
VaR $ name; // html file storage path
VaR $ dirname; // The specified folder name.
VaR $ URL; // The Source
Php deletes a specified folder,Php deletes a specified folder. 1. Preface
Target: php deletes a specified directory.
The php functions used: is_dir, opendir, readdir, scandir, rmdir, closedir, and so on (Note: Other file operation functions can also
Switch directory CD under LinuxView the contents of the current directory under Linux LS, LL, ls-alHow to display the directory path where the current command is located pwdCreate a directory under Linux mkdirCreate a file under Linux direct vim
The code is as follows
Copy Code
Class HTML{var $dir; Dir for the htmls (www.111cn.net/)var $rootdir; Root of HTML files (www.111cn.net/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets 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.