ibnpaul Posted December 3, 2007 Share Posted December 3, 2007 Hello all, I have a command-line PHP program that needs at least the width of the window that it is running in for display purposes. The only way that I have done this successfully is by using ncurses functions. I know that there is an environment variable called $COLUMNS that has this value in it, however it is not available via $_ENV not $_SERVER and would not be available through exec() et al because those create subshells in which they run the commands AFAIK. Is there a way (besides exporting) to get this variable in the scope of my PHP program? Thanks! Link to comment https://forums.phpfreaks.com/topic/79984-getting-size-of-parent-window-in-bashcmd/ Share on other sites More sharing options...
trq Posted December 3, 2007 Share Posted December 3, 2007 If it isn't set in $_ENV then its not available. Link to comment https://forums.phpfreaks.com/topic/79984-getting-size-of-parent-window-in-bashcmd/#findComment-405224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.