Simple cron job php script
<?php
$dir = '/usr/share/nginx/html/mobile-api/LoveIsTheAnswer';
if (!file_exists($dir)) {
mkdir($dir, 0700, true);
}
Location: /usr/share/nginx/html/mobile-api/create.php
Crontab
1 * * * * /sur/share/nginx/html/mobile-api/create.php
My questions are.
Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
replace cron with this:
* * * * * /usr/bin/php -q /usr/share/nginx/html/mobile-api/create.php
It’s not a PHP CLI script, so you need to tell it the interpriter to use, and you misspelled usr
Also, I don’t know what you’ve installed, so I can’t say what else you’ll need.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.