Cron + PHP script

Hello (I am a free user),
I am trying to make a php script run every day via cron, but it doesn’t seem to be running.
My script is in:

public_html/scripts/script.php

Is this the correct thing to be putting into to cron job manager?
Also my php script is just that, a php script. Do I need to do anything to it for it to work with cron?
Thank you in advance for any help.

Try using like

/storage/h4/760/161760/public_html

But find your values instead of mine.

Nevermind ignore me.

So if you have your script saved @ public_html/scripts/script.php I take it you’ve done this?

Have you CHMOD permissions to 777 on script.php?

What kind of script is it?

yes that is what my job looks like
no I have not done the stuff with CHMOD, what is that? (sorry I’m kinda new to web development)
its just a simple script that grabs a json from another website and stores the information in a database. It works when I run it via going to the web address but the job doesn’t seem to run

Okay, I didn’t change anything but it’s working now…after 3 days of not. Thanks for your help anyway!

1 Like