Only the read permission can normally execute the file (is it a boolean user performing this read file operation ?) Only the execution permission prompt is rejected (because php itself is not an execution file? Or is it an interpreted language ??)
Joe Brockmeier briefly introduces the PHP scripting language, discusses the origin, performance, and application Platform of PHP. A simple example of a PHP script illustrates its basic syntax and usage.
If you are working on web-based development,
Welcome to the Linux community forum and interact with 2 million technical staff. Recently, many spaces have been suspended. Although it is not harmful, I only add an iframe advertisement code to the back of your homepage to increase traffic,
Php sets the index. php file to read-only
Function set_writeable ($ file_name)
{
If (@ chmod ($ file_name, 0555 ))
{
Echo "the read-only attribute of the index. php file has been modified ";
}
Because the ftp of your website does not directly set the attributes of files in the space, you wrote a php code to modify the index. the PHP file attribute is index. after setting the read-only attribute for the PHP file, the Trojan has no
Only Read permissions can execute the file properly (is the Boolean user doing this read file?). )
Only the Execute permission prompt is denied (because PHP itself is not an executable file?). Or because it's an interpretive language? )
Read Execute
Because the ftp of your website does not directly set the attributes of files in the space, you wrote a php code to modify the index. the PHP file attribute is index. after setting the read-only attribute for the PHP file, the Trojan has no
Writing and reading PHP files (read only ),
Article outline:
I. Basic Ideas for reading and writing files
Ii. Use the fopen method to open a file
3. File Read and Write operations
4. Use the fclose method to close the file
5. Movement of file
Php implements the method of opening files in read-only mode. Php: how to open a file in read-only mode this article mainly introduces php's method of opening a file in read-only mode. The example analyzes the function and usage skills of fopen
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;
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.