[PHP] RE: Can php run as a script?

2003-04-02 Thread Poon, Kelvin (Infomart)
Thanks! but the thing is I have php 4.2.2 version installed in that server. And since it is not 4.3.0 therefore CLI isn't on by default. How can I check if CLI is on or not? If it is not on, I won't be able to excute the php as a script in another other way? THnaks@ -Original Message-

[PHP] Can php run as a script?

2003-04-02 Thread Poon, Kelvin (Infomart)
Hi, This might be a newbie question but I can't find an answer anywhere I search. I know php can be excuted by a web browser, but can it run as a script like Perl? The reason i ask is, I need to write a php script that updates a database in a server. And this script needs to be running in the b

[PHP] File Searching problem

2003-04-01 Thread Poon, Kelvin (Infomart)
Hi, I need to work on a tiny little program, and was wondering if anyone could help me. I need just a simple program that searches a phrase (inputted by the user in a form) from all the php files in the directory. Let's say the user inputed "How to Log on to XXX", then my programs needs to searc

[PHP] MSSQL/PHP Problem

2003-03-31 Thread Poon, Kelvin (Infomart)
Hi, I have this problem retrieving data from a mssql table with PHP. I have this in my mssql table column: Globe and Mail data are retrieved and processed for CustomSearch. On the R30, the crontab entry: 0 4 * * 1-6 /usr1/applic/ntgm/ntgm_get.pl will run the Perl script at 4 a.m. everyday to

RE: [PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Poon, Kelvin (Infomart)
IL PROTECTED] Sent: Thursday, March 20, 2003 11:20 AM To: PHP Subject: Re: [PHP] Addslashes problem (MSSQL) MS-SQL doesn't escape with slashes. It escapes single quotes with single quotes. -- Lowell Allen > From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> >

[PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Poon, Kelvin (Infomart)
Hi, I have a problem that lets you add a record to a database. THere is a problem with it, and the following is the area of the program where it has problem. $created_date = date('m, d, Y'); $title = strip_tags($title); $keywords = strip_tags($keywords); $c

[PHP] A faster way to Redirect pages

2003-03-17 Thread Poon, Kelvin (Infomart)
Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using ? Is there any way we can do that in php so that it redirect "FASTER"? Right now I set the redirect time to

RE: [PHP] Search/Regular Expression problem

2003-03-14 Thread Poon, Kelvin (Infomart)
THANKS I got it! -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 5:45 PM To: Poon, Kelvin (Infomart); 'Chris Hayes' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Search/Regular Expression problem At 22:15 13-3-2003, Po

RE: [PHP] Search/Regular Expression problem

2003-03-13 Thread Poon, Kelvin (Infomart)
Yeah my data are from a database. How do I use query to search something like that? -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 4:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Search/Regular Expression problem At 21:48 13-3-2003, you wr

[PHP] Search/Regular Expression problem

2003-03-13 Thread Poon, Kelvin (Infomart)
Hi, I am sorry if this problem is too easy but I just can't figure out a way to do this. I am making a search engine and I would have the user to type a sentence to search for. Let's say it is stored in $search. My search enginue will bring up a result IF and only if ALL of the words in $search

RE: [PHP] form/text area input problem

2003-03-13 Thread Poon, Kelvin (Infomart)
THanks guys, I think I will use wordwarp() -Original Message- From: - Edwin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 11:07 AM To: Poon, Kelvin (Infomart); '[EMAIL PROTECTED]' Subject: Re: [PHP] form/text area input problem "Poon, Kelvin (Infomart)&quo

Re: [PHP] form/text area input problem

2003-03-13 Thread Poon, Kelvin (Infomart)
d the paragraph which look pretty bad. I hope you know what i am trying to say. Thank you for the suggestions anyways Kelvin -Original Message- From: - Edwin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 10:14 AM To: Poon, Kelvin (Infomart); '[EMAIL PROTECTED]'

[PHP] form/text area input problem

2003-03-13 Thread Poon, Kelvin (Infomart)
Hi, I was wondering if anyone could give me some idea to help me solve this problem. I am creating a KnowledgeBase for my company. In this knowledgeBase, the employees will input articles in the database. I decided to store it as such: a column for the title, a column for the content. I have

RE: [PHP] Re: really simple problem with GET

2003-03-12 Thread Poon, Kelvin (Infomart)
Yeah it worked... thanks everyone! -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: really simple problem with GET Try ...test.php?test=0 //no $ before test= /Jan "Kelvin Poon" <[EMAIL PRO

[PHP] really simple problem with GET

2003-03-12 Thread Poon, Kelvin (Infomart)
Hi, I am sorry if the level of this question is too simple but I can't figure out what's wrong. I want to pass a variable value through the URL using the Get method. FOr example http://.../test.php?$test=0 and my test.php code are as follow: BUt my outcome is hello so therefore

RE: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-11 Thread Poon, Kelvin (Infomart)
Thanks, but what can FreeTDS do? So it can connect to my AIX server and retrieve that text file out? Kelvin -Original Message- From: Frank M. Kromann [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:35 AM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject

[PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-07 Thread Poon, Kelvin (Infomart)
Hi, I got a little project and I need to come up with a solution on how to finish it and was hoping if you guys can give me any ideas. I have a PERL script on a Unix AIX machine that checks for incoming update of data. Specificly what it does is, when it runs, it will look at the corresponding d

RE: [PHP] Help with Sessions

2003-02-28 Thread Poon, Kelvin (Infomart)
Thanks everyone! it worked fine now! -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:58 AM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Help with Sessions Hi, Saturday, March 1, 2003, 1:54:24 AM, you

[PHP] Help with Sessions

2003-02-28 Thread Poon, Kelvin (Infomart)
Hi I just have a little problem with sessions. my code: TEST \n"; echo "\n"; echo "\n"; } ?> my error msgs: Warning: Cannot send session cookie - headers already sent by (output started at d:\apache_docroots\internal.infomart.ca\infodesk\test.php:6) in d:\apache_docroots\internal.infom

RE: [PHP] Simple PHP script

2003-02-13 Thread Poon, Kelvin (Infomart)
Thanks everyone, It worked. Kelvin -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 4:13 PM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Simple PHP script Sigh if ( $_POST['submit1

[PHP] Simple PHP script

2003-02-13 Thread Poon, Kelvin (Infomart)
Hi, I am new to PHP and had just written a simple php script to get things started. I have the following code: Input yourname So this page is suppose to display a input box and a submit button and once you enter ur name and press the button, it should show Hello [ur name] and the in