PHP elementary school (2)

Source: Internet
Author: User
1. year, month, day, hour, minute, and second? Phpechodate (DATE_ATOM). br; echoDATE_ATOM.br ;? 2. The include may generate a warning but will continue to be executed. does require possibly generate a fatal error? Phpincludeheaderx. php ;?? Phpechodate (DATE_ATOM). br; echoDATE_ATOM.br ;? 3. What are the permissions for reading and writing files? Php $ ffopen (

1. year, month, day, hour, minute, and second? Phpecho date (DATE_ATOM). br/; echo DATE_ATOM.br /;? 2. The include may generate a warning but will continue to be executed. does require possibly generate a fatal error? Php include headerx. php ;?? Phpecho date (DATE_ATOM). br/; echo DATE_ATOM.br /;? 3. What are the permissions for reading and writing files? Php $ f = fopen (

1. year, month, day, hour, minute, and second

 ";echo DATE_ATOM."
";?>

2. include may generate a warning but will continue to be executed. require may generate a fatal error.
 
 ";echo DATE_ATOM."
";?>


3. Read and Write files. Pay attention to permissions.
 
You can view the directory permission ls-l

At the same time, observe why the current httpd (apache process) user is executing: ps-aux | grep httpd

Then change the response permission to chown.

4.

Setcookie () must be inPreviously, the default value is 30 days, measured in seconds.


5.

Session_start needs to be called in php that requires session

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.