0

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:/"

1 Answer 1

1

Try this

is_dir(trim(fgets(STDIN)))

I think the raw inputs must be c:/ + ENTER KEY

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.