Re: [PHP-WIN] Redirection

2003-11-26 Thread PETCOL
Rasmus, Thank you, sorted it out: In the function browserRedirect() { var ns4 = document.layers; var ns6 = document.getElementById && !document.all; var ie4 = document.all; if(ns4) URLStr = "http://www.php.net";; else if(ns6) URLStr =

Re: [PHP-WIN] Redirection

2003-11-26 Thread Rasmus Lerdorf
On Thu, 27 Nov 2003, PETCOL wrote: > Thanks, but, what if, I've just gone through an set variables and outputed > the contents of those to PHP, just to run up a SQL query, to authenticate a > user. Set another to say they are authenticated, then I want to take the > user to another page? What PHP

Re: [PHP-WIN] Redirection

2003-11-26 Thread PETCOL
Rasmus, Thanks, but, what if, I've just gone through an set variables and outputed the contents of those to PHP, just to run up a SQL query, to authenticate a user. Set another to say they are authenticated, then I want to take the user to another page? What PHP method would I use in this case.

Re: [PHP-WIN] Redirection

2003-11-26 Thread Rasmus Lerdorf
You have to put this before any other output on the page. -Rasmus On Thu, 27 Nov 2003, PETCOL wrote: > Newbie questions again. > > In ColdFusion I'd use a tag to push the user to another page or > location... > > In PHP I've read you can use a: > > header("Location: http://domain/virtual/y

[PHP-WIN] Redirection

2003-11-26 Thread PETCOL
Newbie questions again. In ColdFusion I'd use a tag to push the user to another page or location... In PHP I've read you can use a: http://domain/virtual/yourpage.php";); exit; ?> However, when ever I've tried this I keep getting errors something like: "Warning: Cannot modify header inform

[PHP-WIN] Add user to Active Directory

2003-11-26 Thread John
Hey all, I'm trying to add a user to Active Directory with PHP. I'm running apache 1.3.29 and PHP (latest) on Windows 2000. I also have LDAPS working. I can query AD, search it, even modify attributes for existing users, but the two pieces of code I've tried don't seem to work. One is from the LDA

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Vail, Warren
Ok, here's my 2 cents worth. It's hard to be off subject when it comes to PHP, since one of the primary features of PHP is it integrates so robustly with a wide variety of internet protocols, databases, other programming languages, etc. Even design issues leave the new folks staggering from the

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Croskerry, Dan
Hey Tryst, It is nice when the questions are related to the theme of the discussion board though is it not? (PHP in this case) That was the point that I was trying to make. I guess I could have said it in a nicer way since I have taken a ton of flak on this one today. By the way, I'm sure those q

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Trystano
can I just point out that, being a student myself it is sometimes t time consuming to wad through loads of books etc to find a problem, so posting a question to the knowledgable ones is sometimes a better option, and much quicker. At the end of the day, we will learn the problem via both so

RE: [PHP-WIN] I keep getting parse error, unexpected T_VARIABLE

2003-11-26 Thread Croskerry, Dan
You are missing a quote line #11 >> date("H) -Original Message- From: Stephen Knight [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:47 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] I keep getting parse error, unexpected T_VARIABLE I trying to figure out PHP, and have bee

php-windows Digest 26 Nov 2003 17:54:11 -0000 Issue 2017

2003-11-26 Thread php-windows-digest-help
php-windows Digest 26 Nov 2003 17:54:11 - Issue 2017 Topics (messages 22196 through 22211): DFD for website 22196 by: Rinku Shivnani 22204 by: Croskerry, Dan 22205 by: doris pelger :: eva horner 22207 by: Croskerry, Dan 22208 by: Croskerry, Dan

[PHP-WIN] I keep getting parse error, unexpected T_VARIABLE

2003-11-26 Thread Stephen Knight
I trying to figure out PHP, and have been reading several books. There seems to be no ryhme or reason as to when to use single quotes or double quotes. Here is the simple code that I am trying to get to work. Greetings =12) and (date("H) < 18)) { print ('afternoon'); } else { print ('evening,

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Croskerry, Dan
I apologize if I upset people with my comments earlier today. I was up most the night debugging if that is an excuse. I'll try and be a bit more civil in the future. Have a day, Dan -Original Message- From: Luis Moreira [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 9:38 AM

Re: [PHP-WIN] DFD for website

2003-11-26 Thread Luis Moreira
I wasn't planning on contributing to this (very) large thread, but one thing is to read that not all questions deserve an answer (like on the -good- document that Ignatius pointed out), which I think is false, but respect as an answer, and a very different thing is to insult someone because they as

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Croskerry, Dan
Whose the touchy one now? If you want to defend people who don't even try a search or open a book or two before posting then that is up to you Doris. If my pointing out this shortcoming out is considered rude/crude then so be it. D. -Original Message- From: doris pelger :: eva horner [m

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Croskerry, Dan
Give me a break Doris. This is a PHP list. Nothing touchy about it, I just don't come in here to read this rubbish - I have enough emails to get through in a day as it is. Did you even read those 3 posts? Is he trying to win the "most non-PHP related posts in one day" award? And IMHO, I don't thin

RE: [PHP-WIN] Time out a session

2003-11-26 Thread Derrick Hermanson
This is how we do it in some of our online programs. setcookie('LOGIN',$LOGIN,(time()+32400),'/','',0); Derrick Hermanson Programmer Analyst I [EMAIL PROTECTED] -Original Message- From: PETCOL [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 6:23 AM To: [EMAIL PROTECTED] Subj

Re: [PHP-WIN] DFD for website

2003-11-26 Thread doris pelger :: eva horner
UUh TOUCHY! What is this here - no concept of being young and inexperienced, lost that one? - refusing to give an answer - guard your precious occupation? Good day to you too! Doris - Original Message - From: "Croskerry, Dan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

RE: [PHP-WIN] DFD for website

2003-11-26 Thread Croskerry, Dan
Rinku, Judging by your last 3 posts, you need to buy some books or go to school. And by the way, I'm sure that most of the participants on this list, like myself, consider themselves to be Web Developers or Programmers and not "web designers". And if you must ask asinine questions please keep it

[PHP-WIN] Re: Time out a session

2003-11-26 Thread Jarl E. Gjessing
Would session.cookie_lifetime not do the trick? I found it here: http://www.php.net/manual/en/ref.session.php Petcol wrote: > PHP Newbie here. > > Is there a way to time out a session? Say after like 30 minutes. > > I want to set a session.variable after a user has been authenticated, then > I

[PHP-WIN] Time out a session

2003-11-26 Thread PETCOL
PHP Newbie here. Is there a way to time out a session? Say after like 30 minutes. I want to set a session.variable after a user has been authenticated, then I want it to time out so they have to log back in again. Suggestions? Col -- PHP Windows Mailing List (http://www.php.net/) To unsubscr

RE: [PHP-WIN] syntax for remove column

2003-11-26 Thread Svensson, B.A.T. (HKG)
Actually it shoul be: "go and read the fine manual", RTFM, however for the none sensitive audience "fine" should be spelled "fucking". -Original Message- From: Donatas To: [EMAIL PROTECTED] Sent: 2003-11-26 08:46 Subject: Re: [PHP-WIN] syntax for remove column The syntax is called "go and

RE: [PHP-WIN] syntax for remove column

2003-11-26 Thread Svensson, B.A.T. (HKG)
ALTER TABLE DROP COLUMN -Original Message- From: Rinku Shivnani To: [EMAIL PROTECTED] Sent: 2003-11-26 07:36 Subject: [PHP-WIN] syntax for remove column Dear all, I want to delete one column from my table. Can any of you tell me syntax for it pls ? Thank you -- PHP Windows Mailing

Re: [PHP-WIN] syntax for remove column

2003-11-26 Thread Ignatius Reilly
I would start here: "How To Ask Questions The Smart Way", an excellent (as always) article by Eric Raymond http://www.catb.org/~esr/faqs/smart-questions.html HTH _ - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesd

Re: [PHP-WIN] syntax for remove column

2003-11-26 Thread Donatas
The syntax is called "go and read the damn manual"! http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#ALTER_TABLE Rinku Shivnani wrote: Dear all, I want to delete one column from my table. Can any of you tell me syntax for it pls ? Thank you -- PHP Windows Mailing L

[PHP-WIN] syntax for remove column

2003-11-26 Thread Rinku Shivnani
Dear all, I want to delete one column from my table. Can any of you tell me syntax for it pls ? Thank you -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php