You are here: Writing mulitple output lines to single line « PHP « IT news, forums, messages
Writing mulitple output lines to single line

Posted by Robert M. Pufky on 01/08/05 19:01

Hello all,

I have tried looking through the previous messages, but I have yet to
find anything that involves my specific problem. Maybe I am not
searching for the correct terminology.

I current have a php script that processes many files (6000+). When
it is processing a file, it prints out what is going on with each file
to a seperate line. What I want to do is OVERWRITE the output line for
each file, and keep output to a single line. (Please see below for
example) - I know it is possible to do this in bash, pearl and other
scripting languages, but I have yet to figure out if it is possible in
php. I have tried printing backspace characters (\b), the ascii
equivalent, etc, but nothing seems to be working. If anyone has any
solutions / suggestions, it would be most welcome.

Example:

Current screen (after 3 iterations):
running cleanup...
processing 1 of 6453: adding extensions / removing case.
processing 2 of 6453: adding extensions / removing case.
processing 3 of 6453: invalid extension - deleteing.

Wanted screen (after 3 iterations):
running cleanup...
processing 3 of 6453: invalid extension - deleteing.

(The content of the lines is unimportant, its the number of lines
showing that is)

Thanks in advance!
- bob.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация