[PHP] Re: PHP on FreeBSD - Compiler Bugs and Option selection

2005-09-10 Thread Vizion
On Saturday 10 September 2005 12:53, the author Vizion contributed to the dialogue on- Re: PHP on FreeBSD - Compiler Bugs and Option selection: >On Saturday 10 September 2005 12:49, the author Vizion contributed to the >dialogue on- > > PHP on FreeBSD - Compiler Bugs and Option selection: >>H

[PHP] creating a login/registration/admin function/app

2005-09-10 Thread info
Hello Bruce, I didn't want to sound like a walking advertisement on this list so I have sticky emailed specific information direct to you about your question and our answer. However, I DID want the list to know about a freeware ( LGPL license ) mini application that protects sensitive web page

[PHP] Date/Time Display for recurring monthly event

2005-09-10 Thread [EMAIL PROTECTED]
Having a heck of time getting anything to work, can anyone make a suggestion to the following. I need a webpage that displays 5 recurring meeting dates, i.e. the second Wednesday, Thursday, and Friday of each month in five different locations. Is there an easy (meaning code only, without using a

RE: [PHP] searching through a mysql db/tbl

2005-09-10 Thread Murray @ PlanetThoughtful
> hi... > > i'm trying to figure out how to approach/solve a few issues. looking > through > google hasn't made the light shine!! > > 1) i'm trying to figure out how to allow a user to search through a > query/tbl for a given string. ie, if i have the following as the result of > a > query: > >

[PHP] thanks for the help

2005-09-10 Thread matt VanDeWalle
hello, I just wanted to say thank you to the person who basically rewrote the function i seemed to have problems with and it actually now works. thanks again matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Books / tutorials on Object Oriented Programming with PHP

2005-09-10 Thread Jordan Miller
Here is a thorough review on the Zandstra book: http://books.slashdot.org/article.pl?sid=05/08/16/0434205&tid=169&tid=6 Jordan On Sep 9, 2005, at 6:39 PM, Jason Coffin wrote: On 9/9/05, Vinayakam Murugan <[EMAIL PROTECTED]> wrote: I am learning about Object Oriented Programming with PHP. Ca

Re: [PHP] Convert a timestamp to RFC822??

2005-09-10 Thread Jordan Miller
we *just* had a post similar to this. It's easy, just use the date() and strtotime() functions: $timestamp = '2004-05-14 13:24:48'; $RFC_formatted = date('r', strtotime($timestamp)); done! Jordan On Sep 10, 2005, at 11:14 AM, Brian Dunning wrote: I get my timestamp from the db in this form

Re: [PHP] ran into a seemingly odd problem

2005-09-10 Thread Jasper Bryant-Greene
matt VanDeWalle wrote: function commands($sock, $data) { $word_count = str_word_count($data); $words = str_word_count($data, 1); /* here is where the problems come in I think */ if(($word_count == 2) && ($data == '.quit')) { echo "you quit with a message of $data\n"; } else { echo "quitting witho

Re: [PHP] creating a login/registration/admin function/app

2005-09-10 Thread Jay Paulson
You might also take a look at the following. http://phpgacl.sourceforge.net/ I know that's what Joomla (formly known as Mambo) is going to use in their 5.0 version. jay hi... i'm in the process of looking for/creating a function to allow me to perform user login/registration/etc, as well

Re: [PHP] searching through a mysql db/tbl

2005-09-10 Thread Stephen Johnson
On 9/10/05 3:13 PM, "bruce" <[EMAIL PROTECTED]> wrote: > if i allow a user to search on say 'aa', i'd like the user to be able to > get: > > name email foo... > aa [EMAIL PROTECTED] > b1 [EMAIL PROTECTED]123 > > any ideas as to how i could go abo

[PHP] searching through a mysql db/tbl

2005-09-10 Thread bruce
hi... i'm trying to figure out how to approach/solve a few issues. looking through google hasn't made the light shine!! 1) i'm trying to figure out how to allow a user to search through a query/tbl for a given string. ie, if i have the following as the result of a query: name email

[PHP] seemingly odd problem

2005-09-10 Thread matt VanDeWalle
I should have added in my previous message, what my test input was so : ok, i login, this is what I typed to test the little piece of code i previously wrote... /* my input */ .quit goodbye /* just a note, I know that '.quit' by itself is only one word, i guess I just assumed people would know

[PHP] ran into a seemingly odd problem

2005-09-10 Thread matt VanDeWalle
Hello all. I am new to this list but not to new to php although maybe the problem I am having will prove otherwise ok, I am writing a server(or trying to), Basically I am attempting to write a chat type server in php. I cant seem to get it to realize that I have typed more than one word, so e

[PHP] Re: creating a login/registration/admin function/app

2005-09-10 Thread Manuel Lemos
Hello, on 09/10/2005 05:39 PM bruce said the following: Does anybody have any idea as to whether an existing "Open Source" app is out here, that gives a good deal of this functionality? Searching google turns up alot of scripts, but nothing that really has what i'm after and that's free!! You

[PHP] creating a login/registration/admin function/app

2005-09-10 Thread bruce
hi... i'm in the process of looking for/creating a function to allow me to perform user login/registration/etc, as well as handle a user admin function. i'm looking for the following functionality: user registration/login: -allow user to enter basic information -allow user to enter username/pa

[PHP] Re: PHP on FreeBSD - Compiler Bugs and Option selection

2005-09-10 Thread Vizion
On Saturday 10 September 2005 12:49, the author Vizion contributed to the dialogue on- PHP on FreeBSD - Compiler Bugs and Option selection: >Hi ale > >I just wanted to check you had received OK the two compiler errors that I >reported for /usr/ports/lang/php5-extensions. > >The first error was

[PHP] PHP on FreeBSD - Compiler Bugs and Option selection

2005-09-10 Thread Vizion
Hi ale I just wanted to check you had received OK the two compiler errors that I reported for /usr/ports/lang/php5-extensions. The first error was apparently caused by make expecting libmagic in an incorrect path for FreeBSD 5.3. Once a copy was placed in the correct path compilation resumed.

Re: [PHP] Convert a timestamp to RFC822??

2005-09-10 Thread Niels Ganser
Usually you can use a function in your SELECT statement to change the format of your timestamp. In MySQL it's DATE_FORMAT [1]. Otherwise use PHP's Date and Time Functions [2]. You could for instance extract the "ingredients" of your database's timestamp with strptime [3] and reformat it with st

Re: [PHP] switching php version

2005-09-10 Thread Niels Ganser
Choose the right module. Search your apache config for "LoadModule php5_module" resp. "LoadModule php4_module". > How to configure apache to select one particular from several > installed php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Convert a timestamp to RFC822??

2005-09-10 Thread Brian Dunning
I get my timestamp from the db in this format (I don't have control over this): 2004-05-14 13:24:48 I need to convert it to RFC822 to make it a valid RSS pubDate field like this: Wed, 02 Oct 2002 13:00:00 GMT How can I do that? I'm tearing my hair out here (what's left)... :) -- PHP Gen

[PHP] switching php version

2005-09-10 Thread Florent Monnier
Hi, I have put the last php in /usr/local/bin/php505, but apache still use the older php in /usr/bin/php How to configure apache to select one particular from several installed php? -- Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array2string

2005-09-10 Thread afan
try serialize function http://us2.php.net/serialize it's easy to switch back to array again. small addition to Niels'post array 2 string - implode (http://us2.php.net/implode) string to array - explode (http://us2.php.net/explode) -afan > string implode(string glue, array pieces) [1] > > Regar

Re: [PHP] array2string

2005-09-10 Thread Niels Ganser
string implode(string glue, array pieces) [1] Regards, Niels [1] http://php.net/manual/en/function.implode.php > Pardon my ignorance and lack of ability to form the right search for > google, but I'm trying to figure out if there's a simple function in > PHP to convert array values to a string w

[PHP] array2string

2005-09-10 Thread David Christensen
Pardon my ignorance and lack of ability to form the right search for google, but I'm trying to figure out if there's a simple function in PHP to convert array values to a string with a separator for each value. eg. $arr = array(1, 5, 2); $str = ($arr, ','); print $str; # "1,5,2" Thanks for y

Re: [PHP] Breaking up search terms into an array intelligently

2005-09-10 Thread Robin Vickery
On 9/7/05, Paul Groves <[EMAIL PROTECTED]> wrote: > I want to be able to break up a number of search terms typed into an input > box into array, simple enough one would think, just use explode, e.g > > > $array = explode(" ", $string); > > > But what if I want to be able to cope with search ter