Re: Wait/Timeout

From: Date: Tue, 09 Jul 2002 16:58:50 +0000
Subject: Re: Wait/Timeout
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-106391@lists.php.net to get a copy of this message
Well, the problem is this. I work for an all-Microsoft company that is currently being forced to take on a number of Linux servers. They have this framework that allows for the automated installation and configuration of servers based on a number of Windows 2000 staging servers and a SQL server. The problem? They want the same framework to build out Linux servers as well. So basically I had to find a way to get these Linux servers to talk to the existing framework. It didn't seem so bad at first, but I had a hell of a time getting the Linux box to talk to the MS SQL server. ODBC didn't seem to work nor did the variety of Perl modules that I tried. The only thing I got to work was PHP (Sybase) and FreeTDS. I really wanted to do this in Perl, but alas, I'm forced to do it in PHP. That's the story. ;-) Michael ----- Original Message ----- From: "Taylor York" <taylor@dreamstargroup.com> To: "Michael" <php@twentyten.org> Sent: Tuesday, July 09, 2002 9:47 AM Subject: Re: Wait/Timeout > Hum. Im kindof curious about the shell... > I really know next to nothing about them, but anyway..just wondering why you > are making one? > and just little details or something...sounds like an interesting project. > > ----- Original Message ----- > From: "Michael" <php@twentyten.org> > Newsgroups: php.general > To: "PHP General" <php-general@lists.php.net> > Sent: Tuesday, July 09, 2002 11:14 AM > Subject: Wait/Timeout > > > > Hi! > > > > I've been using PHP to write shell scripts and was wondering how to > > implement the following: > > > > - I have a menuing system > > - If a user does not give an input within a certain amount of time, I > want > > it to go to a default value > > > > I checked the PHP functions page and the closest thing I found was "sleep" > > which isn't quite right. I'm sure this is a common thing, so does anyone > > have any suggestions? Again, this is a terminal program and not a web > CGI. > > > > While I have your attention, I also wanted to create one of those > "spinners" > > while users wait for longer tasks to complete. I tried using the ncurses > > stuff to print and erase characters, but it didn't seem to work. What is > a > > good way to create a "spinner" so that users know that the program is > > working. > > > > For those who don't know what I mean, I'm thinking of something like... > > > > - (backspace) \ (backspace) | (backspace) / (backspace) etc. etc. > > > > Thanks in advance! > > > > > > Michael > > >

« previous php.general (#106391) next »