Could not open input file:
i am using cpanel and get error:Could not open input file:
how to solve it me command is
/usr/local/bin/php -q safe_mode=Off /home/rankingsolution/public_html/my.php
any body please help
-
Hi, What output do you get without safemode? Can you share a screenshot of the error? /usr/local/bin/php -q /home/rankingsolution/public_html/my.php 0 -
Hello, You must use the "d" flag to define PHP environment variables when calling it via the command line. EX: /usr/bin/php -q -d safe_mode=Off /path/to/test.php
Keep in mind the "safe mode" option is removed as of PHP 5.4: PHP: Safe Mode - Manual Thank you.0 -
Thanks for asking but problem has been solved. 0
Please sign in to leave a comment.
Comments
3 comments