[PHP] Apache odd behavior

2009-02-15 Thread Paul M Foster
I'm submitting a url like this: http://mysite.com/index.php/alfa/bravo/charlie/delta The index.php calls has code to decode the url segments (alfa/bravo/charlie/delta). It determines that the controller is alfa, the method is bravo, and converts charlie and delta to $_GET['charlie'] = 'delta'. It

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-15 Thread Per Jessen
Sancar Saran wrote: > Hello list. > > Recently we had some serious discussion on local boards. > > I prefer calling PHP as Web Framework of C and C++ > PHP is a scripting language with syntactical roots in C. /Per -- Per Jessen, Zürich (-3.5°C) -- PHP General Mailing List (http://www.php

[PHP] Back to Basics - Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-15 Thread Rene Veerman
Just for this case, where authentication of the server isn't an issue, and things like deployment cost are, i'd like to propose that we on this list look again at securing login/pass through onewayHash functions, in an otherwise non-ssl environment. i hate to be a critic of the community her

Re: [PHP] Reverse IP lookup

2009-02-15 Thread Andrew Ballard
On Sun, Feb 15, 2009 at 1:22 PM, דניאל דנון wrote: > Hello, > > Is there anyway to get a list of sitess that are on a specific IP? > > I looked, But I couldn't find anything. > > I tried to make some with dns_get_record and gethostbyaddr, but couldn't > make anything > > Thank > > Daniel > You m

Re: [PHP] Sorting times (SOLVED)

2009-02-15 Thread Shawn McKenzie
tedd wrote: > At 9:31 PM -0600 2/14/09, Shawn McKenzie wrote: >> >> Yeah, hif I had known that you wanted a function where you loop through >> your array twice, that would have done it. Bravo. > > Shawn: > > I don't see another way. You go through the array converting string to > time (seconds),

[PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-15 Thread Shawn McKenzie
Shawn McKenzie wrote: > Shawn McKenzie wrote: >> tedd wrote: >>> Hi gang: >>> >>> Anyone have/know a routine that will sort an array of times? >>> >>> For example, a function that would take an array like this: >>> >>> time[0] ~ '1:30pm' >>> time[1] ~ '7:30am' >>> time[2] ~ '12:30pm' >>> >>> and or

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-15 Thread Michael A. Peters
Colin Guthrie wrote: 'Twas brillig, and German Geek at 15/02/09 22:32 did gyre and gimble: Please enlighten me why it is so expensive? Is it maybe just the hassle of setting it up? The whole thing is about trust. Getting a certificate is nothing if the system is not backed up by a trust syst

Re: [PHP] Re: Sorting times

2009-02-15 Thread German Geek
Yes, you are right. Hadn't thought about that. But usort is probably better than making your own sort function because it uses the quick sort algorithm i believe which is quite efficient. That was the other suggestion... Tim-Hinnerk Heuer http://www.ihostnz.com Fred Allen - "California is a fine

[PHP] Re: for the security minded web developer - secure way to login?

2009-02-15 Thread Colin Guthrie
'Twas brillig, and German Geek at 15/02/09 22:32 did gyre and gimble: Please enlighten me why it is so expensive? Is it maybe just the hassle of setting it up? The whole thing is about trust. Getting a certificate is nothing if the system is not backed up by a trust system. If a CA was setup t

Re: [PHP] Re: Sorting times

2009-02-15 Thread Mattias Thorslund
German Geek wrote: The easiest would probably to use http://nz.php.net/manual/en/function.strnatcmp.php . It would happen to sort it the right way because am is before pm ;-). Nope. Unfortunately 12 am (midnight) comes before 1 am, and 12 pm (noon) comes before 1 pm. Since you have to acco

Re: [PHP] Re: Sorting times

2009-02-15 Thread German Geek
The easiest would probably to use http://nz.php.net/manual/en/function.strnatcmp.php . It would happen to sort it the right way because am is before pm ;-). You can of course make it more challenging by converting it into a timestamp etc. That would be better if you want to sort by date as well et

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread German Geek
Hi All again, What makes it so expensive to have a certificate? I mean, wouldn't it be possible to setup a new authority that doesn't charge as much or nothing at all? Wouldn't the major browsers be willing to support an authority that is free or costs next to nothing? I pay about $200 a year for

[PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-15 Thread Sancar Saran
Hello list. Recently we had some serious discussion on local boards. I prefer calling PHP as Web Framework of C and C++ if you had a time for this fruitless discussion. Please send your opinions. Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Reverse IP lookup

2009-02-15 Thread Richard Heyes
> Is there anyway to get a list of sitess that are on a specific IP? Not AFAIK. You can get the name associated with that IP adress (IIRC), but one IP could be serving multiple sites using virtual hosting. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.

[PHP] Reverse IP lookup

2009-02-15 Thread דניאל דנון
Hello, Is there anyway to get a list of sitess that are on a specific IP? I looked, But I couldn't find anything. I tried to make some with dns_get_record and gethostbyaddr, but couldn't make anything Thank Daniel

Re: [PHP] Re: Simple Search Logic Issue...

2009-02-15 Thread revDAVE
On 2/15/2009 3:32 AM, "David Robley" wrote: > If you are using that syntax, I'd suggest echoing your query to make sure > that it is as it should be; I'm wondering if you are actually enclosing > string values in single quotes in your query? Another part of the dw cs3 code uses switch - that se

[PHP]

2009-02-15 Thread Richard Heyes
Hi, Does anyone the status of http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Simple Search Logic Issue...

2009-02-15 Thread revDAVE
On 2/15/2009 3:32 AM, "David Robley" wrote: > > LIKE '%c%' will match a field containing 'c' anywhere > > If you are using that syntax, I'd suggest echoing your query to make sure > that it is as it should be; I'm wondering if you are actually enclosing > string values in single quotes in your

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread Michael A. Peters
German Geek wrote: OK, i hear about this self signed certificate. Whenever i signed anything it just came up with all these warnings in FF which confuses users and i think is not good at all. Can someone paste a link in here to a website with a self signed cert please? Would like to see if there

Re: [PHP] Google Apps AuthSub = missing $_GET element

2009-02-15 Thread Michael Kubler
Do you have magic quotes on? Also, try a >*print_r($_SERVER);* or even a >*var_dump($_GET);* See what's actually in the arrays. Michael Kubler *G*rey *P*hoenix *P*roductions John Corry wrote: I am completely baffled by this. I have a PHP script that is using

Re: [PHP] Sorting times (SOLVED)

2009-02-15 Thread tedd
At 9:31 PM -0600 2/14/09, Shawn McKenzie wrote: Yeah, hif I had known that you wanted a function where you loop through your array twice, that would have done it. Bravo. Shawn: I don't see another way. You go through the array converting string to time (seconds), sort, and then convert back

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread German Geek
OK, i hear about this self signed certificate. Whenever i signed anything it just came up with all these warnings in FF which confuses users and i think is not good at all. Can someone paste a link in here to a website with a self signed cert please? Would like to see if there are any warnings etc.

[PHP] Re: Simple Search Logic Issue...

2009-02-15 Thread David Robley
revDAVE wrote: > Newbie question... > > > I have a search page with multi lines of search criteria: > > Name > Topic > Message > Etc... > > I'm hoping to get results based on what criteria I type - but I'm not > getting what I expect. I think it's just getting results where in addition > to ge