[PHP] Re: Two cases going to same case?

2002-06-30 Thread Anil Kumar K.
Can't you write it this way? switch( $bar) { case 2: ... case 1: ... case 3: ... } On Sun, 30 Jun 2002, Leif K-Brooks wrote: I have a switch in a script I'm working on. I need to have case 1 and 2 both to to case 3, but without case 1 going through case 2. Is

[PHP] Re: Passing variables between servers

2002-08-22 Thread Anil Kumar K.
You cannot avoid using cookies. When you use Sessions web server is making use of cookies (unless you go for URL rewriting) which remains in the browser until one quits the browser. To tackle your situation, you can effectively make use of a database table and a session cookie: 1. set a

[PHP] Re: Simple regexp

2002-08-30 Thread Anil Kumar K.
You can use the following pattern with preg_match: /([a-f0-9]+)((:[a-f0-9]+){7})/i I made an assumption that you are using the x:x:x:x:x:x:x:x address format. Anil On Wed, 28 Aug 2002, Adam Alkins wrote: Hi Folks, Seeking some guidance here. My regexp knowledge is pathetic. I

Re: [PHP] Restart Apache with PHP???

2003-09-04 Thread Anil Kumar K.
Writing something like this as part of a Web application is definitely a bad idea. The requirement is more like that of a remote administration system and Webmin (http://www.webmin.com/) cleanly and safely fits the bill. Webmin can actually do more than just restarting Apache. But it can be

[PHP] Re: secure code

2003-05-29 Thread Anil Kumar K.
Here is exactly what you are looking for: The Open Web Application Security Project http://www.owasp.org/ best. Anil On Wed, 28 May 2003, Tim Burgan wrote: Hello, I'm wondering if you can recommend any resources that discuss writing secure code and how to put the best methods in

[PHP] Re: weird header() (bug may be)

2004-02-12 Thread Anil Kumar K.
This is not a bug. Here you expect that the script should end executing after the statement:header('Location:to_another_page.php') if the if statement is true. But it won't and it proceeds to the next statement; the next header statement:header('Location:to_previous_page.php'); An exit statement

[PHP] Re: Cybercash Dynamic Module

2004-02-24 Thread Anil Kumar K.
On Tue, 24 Feb 2004, Suhas wrote: /snipped If I get the permission to complie PHP with give module, can I just go with ./configure --with cybercah=DIR ? I think it will kill my original install. Is there any way to append the configuration as needed? I am sure many of you may have

[PHP] Re: server side redirects

2004-03-04 Thread Anil Kumar K.
On Thu, 4 Mar 2004, matthew oatham wrote: Hi, I have a page that checks to see if a session exists and if so does a server side redirect - i tired using header(Location: membersArea.php); but I got an error about headers already sent, guess HTTP 1.1 needs the redirect string of the form: