[PHP] eliminate keyword

2004-07-27 Thread Raúl Castro
Hello, I have a form with a textarea field, I'm trying to eliminate the keywords that users write on it, what can I do using php? for instance: the original phrase would be: "Hello world!" after using a function php must be: "Hello world!". Thanks

Re: [PHP] eliminate keyword

2004-07-27 Thread Jason Davidson
if you mean remove the new line characters, then a str_replace('\n', '', $textbody); should be sufficient. If thats not what you mean, please clarify. Jason On Tue, 27 Jul 2004 18:29:42 -0500, Raúl Castro <[EMAIL PROTECTED]> wrote: > Hello, > > I have a form with a textarea field, I'm trying to

Re: [PHP] eliminate keyword

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 18:29:42 -0500, Raúl Castro <[EMAIL PROTECTED]> wrote: > Hello, > > I have a form with a textarea field, I'm trying to eliminate the keywords > that users write on it, what can I do using php? for instance: the original phrase > would be: "Hello world!" > after using a func

[PHP] Showing all users who are logged in

2004-07-27 Thread Jason Giangrande
Anyone have any suggestions as to the best way to keep track of all users who are logged in at a given time? I thought of writing them to a temp text file and them deleting the names from the file when a user logged out, but I think there has to be a better way. Anyone have any suggestions?

Re: [PHP] Showing all users who are logged in

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 19:55:49 -0400, Jason Giangrande <[EMAIL PROTECTED]> wrote: > Anyone have any suggestions as to the best way to keep track of all > users who are logged in at a given time? I thought of writing them to a > temp text file and them deleting the names from the file when a user > l

Re: [PHP] Showing all users who are logged in

2004-07-27 Thread Jason Davidson
If you have a users table, you could add a field to it that contains the last login datetime. and query that table for datetimes that are less then your session timeout (if one exists). Of coarse, you would have to update that table when a user logs in. Jason On Tue, 27 Jul 2004 19:55:49 -0400,

RE: [PHP] Showing all users who are logged in

2004-07-27 Thread Vail, Warren
I did one application where I used the PHP session table to tell who was logged on, and which area of the application they were most recently in. One of several flaws, was that I used Kill session to logoff, and that caused them to disappear from any count of users logged on. Course, if they had l

[PHP] Using htaccess to show diff dir (0T)

2004-07-27 Thread PHP Gen
Hi, instead of showing my index.php page located at / I want to show my index.html page located at /cached/ but I dont want to use javascript as the clients JS might be off...and I dont want to get blacklisted by the search engines for redirecting... I did read somewhere that you can redirect via

[PHP] RE[PHP] Using htaccess to show diff dir (0T) (SOLVED)

2004-07-27 Thread PHP Gen
Hey, Dont worry about it, found it: http://www.thinkhost.com/services/kb/301-redirect.shtml Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Jason Wong
On Wednesday 28 July 2004 04:51, Vern wrote: > I get: > > # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n > --16:49:59-- http://www.comp-wiz.com/index.html >=> `-q' > Resolving www.comp-wiz.com... done. > Connecting to www.comp-wiz.com[207.234.154.95]:80... connected.

[PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Fitra Alfina
please give me a command line to startup MySQL using safe_mysqld --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Ed Lazor
It depends on your configuration, OS, etc... > -Original Message- > From: Fitra Alfina [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 27, 2004 7:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Urgent..my MYSQL dies.. > > please give me a command line to startup MySQL using safe_mysqld -

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread raditha dissanayake
Fitra Alfina wrote: please give me a command line to startup MySQL using safe_mysqld try the mysql list -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP

[PHP] how to restart deamon??

2004-07-27 Thread Fitra Alfina
how to restart deamon?? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to restart deamon??

2004-07-27 Thread David Robley
On Wed, 28 Jul 2004 12:49, Fitra Alfina wrote: > how to restart deamon?? How to ask questions the smart way http://www.catb.org/~esr/faqs/smart-questions.html -- David Robley Dogs come when you call. Cats have answering machines. -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Louie Miranda
I can't figure how could i add +7 more days on the DD (Day) value. My problem is, when the day is close on the end of the month like 07/29/2004 when i add +7 on 29 = 36, its obvious we dont have 36 on the calendar. And im creating a program below, to explode it and maybe just add +. But i think i

Re: [PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Justin Patrin
On Wed, 28 Jul 2004 11:30:42 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > I can't figure how could i add +7 more days on the DD (Day) value. My > problem is, when the day is close on the end of the month like > > 07/29/2004 > > when i add +7 on 29 = 36, its obvious we dont have 36 on the cal

Re: [PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Jason Wong
On Wednesday 28 July 2004 11:30, Louie Miranda wrote: > I can't figure how could i add +7 more days on the DD (Day) value. My > problem is, when the day is close on the end of the month like > > 07/29/2004 > > when i add +7 on 29 = 36, its obvious we dont have 36 on the calendar. > And im creating

[PHP] Re: [phpug-ph] expiring logins with-in 5days, nde pwede cookies.

2004-07-27 Thread Louie Miranda
HAHAHAHHAHA http://ph.php.net/manual/en/function.strtotime.php :) -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Jason Davidson
Definately check out strtotime() function, way easier than adding up the seconds of a timestamp, or breaking apart a getdate array. Jason On Wed, 28 Jul 2004 11:30:42 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > I can't figure how could i add +7 more days on the DD (Day) value. My > problem

[PHP] Problem with circular include statement

2004-07-27 Thread C.F. Scheidecker Antunes
Hello all, I have 3 scripts script1.php and script2.php where both include the same general.inc file of functions. Then I have script3.php that calls functions from both scritp1.php and script2.php. As both script1 and script2 include general.inc when I try to use diferent function on script3 I

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread holmes072000
> please give me a command line to startup > MySQL using safe_mysqld C:\> ---John Holmes... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- PHP General Mailing List (htt

[PHP] Data management tool

2004-07-27 Thread Jaskirat Singh
Hi Everyone, I am looking for a tool that lets me do simple data managment ie. edit,update,insert and delete records in tables of a database. I am kinda fed up of writing those php scripts for back ends of websites over and over :). I am looking for some thing generic to replace that if possible.

[PHP] Re: Problem with circular include statement

2004-07-27 Thread Jason Barnett
I *believe* that include_once will be all that is necessary. However if that doesn't stop the problem, you can use a DEFINE and at the top of each script: if (!defined(FILE1)) { include_once 'file1.php'; } -- file1.php - define ('FILE1', TRUE); -- PHP General Mailing List (

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Jason Barnett
[EMAIL PROTECTED] wrote: please give me a command line to startup MySQL using safe_mysqld C:\> ---John Holmes... HAHAHA How'd you guess they would have a drive letter for their prompt :) Oh, us poor, poor windows users. Microsoft has "protected" us from it for so long that we've forgotten wha

[PHP] Call for XML / XPATH examples

2004-07-27 Thread Jason Barnett
I'm working on a project that makes use of the DOMXPath class in PHP5. I have some test xml documents / queries, but it would be good to test my project with other people's documents / xpath queries that do things mine don't. Please reply off list though, since I doubt most of the people here wan

Re: [PHP] Data management tool

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 22:09:35 -0700 (PDT), Jaskirat Singh <[EMAIL PROTECTED]> wrote: > Hi Everyone, > I am looking for a tool that lets me do simple data managment ie. > edit,update,insert and delete records in tables of a database. > > I am kinda fed up of writing those php scripts for back ends o

[PHP] Page Numbering Search Results

2004-07-27 Thread Harry G
Hi I am doing a search in the database and would like to limit the display to x numbers only. But would like to put two links next and previous. Where they click to goto next page. Say there were 28 results returned by query but i want to display 5 on first and subsequent pages. The way I do t

[PHP] Re: Data management tool

2004-07-27 Thread Harry G
You can also use an application called CodeCharge. It's very easy to use. By the way are you living in India or abroad?? Harmeet "Jaskirat Singh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Everyone, > I am looking for a tool that lets me do simple data managment ie. > edit,

[PHP] Extracting string from shell_exec call

2004-07-27 Thread C.F. Scheidecker Antunes
Hello all. I have a function that executes the unzip command. function test_unzip($command) { $stdout = shell_exec($command); echo $stdout; } This is the content of $stdout after calling it with $command = "unzip ./email/test.zip"; Archive: ./email/test.zip inflating: ./txt/test.t

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n What I wrote was wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n You forgot - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] We give you $200 bonus at Casino Zeal!

2004-07-27 Thread Homer R. McIntosh
Hi, I have a special offer available for you at our casino. $20 to try our internet casino, no deposit is necessary! At the casino software's cashier enter bonus code: FR93P $200 bonus on your first deposit! At the casino software's cashier enter bonus code: FMJKU Allow us to show you our quali

Re: [PHP] Extracting string from shell_exec call

2004-07-27 Thread raditha dissanayake
C.F. Scheidecker Antunes wrote: Hello all. I have a function that executes the unzip command. .. What I want to do is to extract the value(s) after inflating, so that I can check what was extracted from the zip. You can do so with regular expresson but a more simple aproach may be to use the spl

<    1   2