Answer the question
In order to leave comments, you need to log in
How to specify path to save file in cron?
Good day, I have a php script. Which requests a token from the server and writes to a file.
I added this script to Cron, but cron saves the created file not in the directory where the script was run, but 3 directories above.
Example (see below)
/home/admin/web/*********/public_html/save.txt <- I need
/home/admin/save.txt here <- and it saves here
How can I specify in cron, the path to save this file?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question