[PHP] PHP templeate and client JavaScript.

2002-04-14 Thread Peter Ruan
Hi, I'm not sure if this belongs to JavaScript or PHP section. I'm running into problems when I'm trying to use php templates with embeded JavaScript. In my template file, I have something like... function Show() { if(layer) { if(timer) { clearTimeout(timer); } for(men

[PHP] Re: PHPTriad Error in Windows XP.

2002-03-25 Thread Peter Ruan
I did started MySQL server first. "Avdija A . Ahmedhodzic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > says... > > Hi, > > I installed PHPTriad under Windows XP and I keep gettting the > > following error

[PHP] PHPTriad Error in Windows XP.

2002-03-23 Thread Peter Ruan
Hi, I installed PHPTriad under Windows XP and I keep gettting the following error: Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line 255 It worked before under Windows ME. WinMySQLadmin1.0 works fine as w

[PHP] PHPTriad error in Windows XP.

2002-03-23 Thread Peter Ruan
Hi, I installed PHPTriad under Windows XP and I keep getting this error: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL question...not sure if this is the correct forum to ask.

2002-02-14 Thread Peter Ruan
Hi, I have a quick MySQL question...if this is not the correct forum for it, then someone please point me to the right one. Can the UPDATE statement have conditional check embedded in it? I have a page that displays a record (in a FORM format) that the user can change the information on each

[PHP] Re: array variable passing in session.

2002-02-07 Thread Peter Ruan
t; > //create session variables > > session_register("password"); > $password = $pswd; > > session_register("user_id"); > $username = $usid; > > > //echo a friendly message or use header() function to redirect the user to > the appropriate page &g

[PHP] Re: How to Configure the MySql Database?

2002-02-07 Thread Peter Ruan
Hi, I recommend using a nice program call PHPTriad. It's painless and you don't have to worry about anything. The only downside is that it cofigures PHP as CGI module only. -Peter "Karadamoglou Kostas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't k

[PHP] array variable passing in session.

2002-02-07 Thread Peter Ruan
Hi, I am running into a problem that I can't figure out the solution to. So I'm hoping that someone can give me some pointers here. I have two files (see below): verify.php and edit.php The job of verify.php is basically to verify that a user is in the database before allowing him/her to ed

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Peter Ruan
Ryan, I just tried it with my Linux box and I get the authentication box...which is good sign. So it looks like a PHP in MS Windows (the 'fabulous' windows) setting which from the error.log file indicates as well. /** error message listed in error.log **/ [Mon Feb 04 22:36:30 20

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Peter Ruan
Hi Jason, Yeap, I ran 'phpinfo()' Server API=CGI. I look at the manual and you are right, I must run it as Apache module. Can someone tell me how do I change the setting to run as an APACHE module instead? Thanks, -Peter "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Ruan
Okay, I deleted the other stuff and just put this code and I get this from my interpreter? Is this a setting problem? Thanks, Peter [Mon Feb 04 22:36:30 2002] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: /apache/php/php.exe "Niklas lampén" <[

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Ruan
klas... > There can't be _anything_ before headers. Even a single space and/or > linebreak causes an error. > > > Niklas > > > -Original Message- > From: Peter Ruan [mailto:[EMAIL PROTECTED]] > Sent: 5. helmikuuta 2002 7:42 > To: [EMAIL PROTECTED]; [EMAIL PR

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Ruan
I tried it w/o the tag and I get the BAD Header message. -Peter >From: Jeff Sheltren <[EMAIL PROTECTED]> >To: "Peter Run" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] >Subject: Re: [PHP] Problem...header already sent by >Date: Mon, 04 Feb 2002 21:30:42 -0800 > >You can't send anything before you send