php command line doesn’t send to the script proper prompted input from user. his is an example of the issue
is_dir("C:/"); return 1 but is_dir(fgets(STDIN)) return null after user input "C:/"
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.
Try this
is_dir(trim(fgets(STDIN)))I think the raw inputs must be
c:/ + ENTER KEY