RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Miles Thompson
At 07:17 PM 3/20/2006, Miles Thompson wrote: Forgot to add that the writers work in WP 5.2 for Windows, because it has an excellent indexing function which enables them to locate back stories v. quickly. That text is cut and pasted into an HTML textarea, which is saved to a MySQL databa

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Miles Thompson
At 04:00 PM 3/20/2006, you wrote: I am using a PHP script to pull information from a FoxPro database via ODBC. One of the fields is a memo field (large text) that contains newline characters. Displaying this info to the web page is fine as the newlines are ignored. The challenge is when I com

Re: [PHP-DB] Remove newlines from field

2006-03-20 Thread Ludvig Ericson
Mind you Pearl programmers, what would that do? On 3/20/06, Giff Hammar <[EMAIL PROTECTED]> wrote: > Thanks, Jeremy and Bastien. I just tried nl2br and it has the unfortunate > side effect of losing everything except the most recently added data when I > update the database. I think I need somethi

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Giff Hammar
Thanks, Jeremy and Bastien. I just tried nl2br and it has the unfortunate side effect of losing everything except the most recently added data when I update the database. I think I need something like the 'local $/ = "\r\n"' construct in perl... Giff _ From: Jeremy Peterson [mailto:[EMA

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Bastien Koert
see the nl2br function in the manual (www.php.net/nl2br) bastien From: "Giff Hammar" <[EMAIL PROTECTED]> To: Subject: [PHP-DB] Remove newlines from field Date: Mon, 20 Mar 2006 17:00:49 -0500 I am using a PHP script to pull information from a FoxPro database via ODBC. One of the fields is

[PHP-DB] Remove newlines from field

2006-03-20 Thread Giff Hammar
I am using a PHP script to pull information from a FoxPro database via ODBC. One of the fields is a memo field (large text) that contains newline characters. Displaying this info to the web page is fine as the newlines are ignored. The challenge is when I combine user entered text with the existing

Re: [PHP-DB] Finding a process in *nix

2006-03-20 Thread Ludvig Ericson
How about not posting this to the database related list? On 3/20/06, Bogdan Surdu <[EMAIL PROTECTED]> wrote: > Hi, > > On 3/20/06, Rob W. <[EMAIL PROTECTED]> wrote: > > Heres what i'm trying to do. > > > > $proc=exec('ps aux | grep proc'); > > > > Try 'ps aux | grep proc | grep -v grep' to remove

Re: [PHP-DB] Finding a process in *nix

2006-03-20 Thread Bogdan Surdu
Hi, On 3/20/06, Rob W. <[EMAIL PROTECTED]> wrote: > Heres what i'm trying to do. > > $proc=exec('ps aux | grep proc'); > Try 'ps aux | grep proc | grep -v grep' to remove your grep process from the list. Tim --- Living is easy with the eyes closed. -- PHP Database Mailing List (http://www.php.n

[PHP-DB] Finding a process in *nix

2006-03-20 Thread Rob W.
Heres what i'm trying to do. $proc=exec('ps aux | grep proc'); if ($proc != "") { echo "True"; } if ($proc == "") { echo "False"; } but some time's it show's the ps aux so I dont get a true reading. Anybody have a way that I might be able to extract this out of there to get a true reading