Jump to content
xisto Community
Sign in to follow this  
jonypawks

Console Output In Php How to specify postiion.

Recommended Posts

I've been doing a lot of scripting in php recently and I've really come to like it. But the one thing I can't seem to find anywhere is how to output text to a specific place on a console. What my script does is basically repeats a cumbersome process over and over for approximately 1800 files, and I'd like for the script to show the percentage complete but not print out 1800 lines. I'm not sure if this is even possible but it seems like a feature that would be commonly requested, even though php isn't geared towards console scripts. Thanks ahead of time.

Share this post


Link to post
Share on other sites

If this is solely console, then look into using ncurses with PHP. I haven't used ncurses with PHP though, but I've used it for C++ console programs, the functions you might want to look at are move() and mvprintw().Cheers,MC

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.