Home > OS >  Why the command line or directly modify root file can run time task, through the PHP web page cannot
Why the command line or directly modify root file can run time task, through the PHP web page cannot

Time:09-30

If inscribe
I directly on the command line with a crontab -e to create a root file, after the modification can be normal use
But I passed the PHP page calls a c program, and then calling a write PHP page
Are respectively change4. PHP page and p4 a C program, and write. PHP page
(visitors through the web page change timing task, need root so make calls to write a c program page)

But I found through the PHP page changes, unable to properly run the
Look at the error message


Why the content is same, manually modify feasible, PHP page to modify not
File I also modify for Unix format
Hope to help bosses

CodePudding user response:

Perhaps you can try put the files in the same directory on execution, you this is equivalent to a website to access the resources of the computer, I remember as if can't access, can only access to their site of resources

CodePudding user response:

I have already adjust directory to the root directory, all of my documents are in the same directory

CodePudding user response:

reference 1st floor xl1070410812 response:
perhaps you can try put the files in the same directory on execution, you this is equivalent to a website to access the resources of the computer, I remember as if can't access, can only access to their web site under the resources

I have already adjust directory to the root directory, all of my documents are in the same directory
  • Related