I am trying to run a php script from the command line in windows using the following variations:
php script.php
php -f script.php
Both commands just print out the entire script but don’t execute the script.
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.
Without contents of the script its difficult to see the issues.
Most likely is that you have not used
<?php ?>tags or used the short hand. Try using the full<?php ?>tags.