I want to add a PHP file under homewwwrootmy_domaindomainjingjingjueweb to execute database management. How can I write correctly? I am not very clear about the linux File directory, but I simply printed the directory with df-a. I don't know...
I want/home/wwwroot/my_domain/domain/jingjingjue/web/Add a PHP file to manage the database. How can I write correctly?
-
I am not very clear about the linux File directory, but it is simple to usedf -aPrinted the directory. I don't know./homeIs it the root path?
-
Can I put this PHP file here for normal execution? Or is there a specific php Execution path?
Hope you can give me some advice. Thank you ~
Reply content:
I want/home/wwwroot/my_domain/domain/jingjingjue/web/Add a PHP file to manage the database. How can I write correctly?
-
I am not very clear about the linux File directory, but it is simple to usedf -aPrinted the directory. I don't know./homeIs it the root path?
-
Can I put this PHP file here for normal execution? Or is there a specific php Execution path?
Hope you can give me some advice. Thank you ~
/homeIt is not the root directory. the root directory of the unix system is/;
As long as your files are executable scripts, theoretically, they can be executed in any directory.
Example: What if you need to merge rows/home/dmtsai/test. sh every five minutes? A: Similarly, use crontab-e to import ingress labels: */5 *****/home/dmtsai/test. sh.
Chapter 3 of the Linux private dish of laruence, crontab)