First of all, I have a cron job for a php file.
Second of all, in the php file called by cron job i would like to call a file with a parameter. How could i do that without changing php.ini ?
Example:
include('file.php?id='.$id.');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way is to use
file_get_contents():For more complex cases, you can have a look at PHP Curl.