TAILIEUCHUNG - PHP Developer's Dictionary- P70

PHP Developer's Dictionary- P70:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary Syntax void rewinddir int dir handle Description The rewinddir function resets the pointer for the directory defined by dir handle to the beginning of the directory stream. Filesystem This section describes functions that provide information about a system s files directories permissions and users. These functions enable you to read files change and set permissions create links and return statistics about files and directories. Permissions are important when using these functions if the user who is running PHP does not have permissions to perform the operation an error will be returned. Note Remember that PHP typically runs as the user nobody or some other user with limited system access. basename Syntax string basename string path Description The basename function returns the filename portion of the path defined by path . Given a string containing a path to a file this function will return only the name of the file. chgrp Syntax int chgrp string filename mixed group IT-SC book 345 PHP Developer s Dictionary Description The chgrp function changes the group to which the file defined by filename belongs to the group defined by group . All UNIX permissions apply to the execution of this function. Users can only change the group to another group of which the user is a member. This function returns false 0 if it encounters a problem. Because Windows systems do not have an equivalent this function always returns true 1 and the function does nothing. chmod Syntax int chmod string filename int mode Description The chmod function changes the permissions of the file specified by filename to the mode defined by mode see Tables and . The parameter passed as mode is not assumed to be octal unless it is preceded with a zero. Table . Permissions on a UNIX System Mode Permission 0 000 No permissions 1 001 Execute 2 010 Write 3 011 Write and execute 4 100 Read 5 101 Read and execute 6 110 Read and write 7 111 Read write and execute Table . .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.