PHP Console App and readline

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

PHP Console App and readline

Postby RobertTostevin » November 27th, 2015, 8:01 pm

When trying to use the readline function in a VS PHP Console App I get the error message ...
"call to undefined function readline()"

Is readline supported in php for windows ?

If so how can I get around this issue ?

Thanks

Rob
RobertTostevin
 
Posts: 1
Joined: November 21st, 2015, 12:40 pm

Re: PHP Console App and readline

Postby Jakub Misek » November 30th, 2015, 1:54 pm

Hi,

First, the project has to be of type Console Application.

Second, readline library might not be available in Windows. You can workaround it by using
Code: Select all
fgets(STDIN)
instead.

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 38 guests

cron

User Control Panel

Login

Who is online

In total there are 38 users online :: 0 registered, 0 hidden and 38 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 38 guests