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! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.