Re: [PHP] Hello, I'm new...

2005-05-13 Thread Brian A Anderson
Think he means a CMS || Forumpackage || Portal package? www.opensourcecms.com -brian - Original Message - From: "Jason Barnett" <[EMAIL PROTECTED]> To: Sent: Friday, May 13, 2005 3:20 PM Subject: Re: [PHP] Hello, I'm new... > [EMAIL PROTECTED] wrote: > >>>I would like to create a 'co

Re: [PHP] Reverse plural forms to singular for search

2005-04-16 Thread Brian A Anderson
I was looking into that a month or so ago. Here's an article that mentions the Porter Stemming Algorithm http://www.scit.wlv.ac.uk/seed/docs/mypapers/stemalg.html and the official home http://www.tartarus.org/~martin/PorterStemmer/ I don't know if this is of interest. -Brian Anderson -

Re: [PHP] sorting arrays

2005-03-08 Thread Brian A. Anderson
Right! That fixed it. I was doing it like this: $nar = asort($nar); which gave me a boolean result When I should have done it like this: asort($nar) ; reset($nar); I didn't understand the return of an asort was boolean and not the processed array itself. Thanks, -Brian - Original M

Re: [PHP] Re: sorting arrays

2005-03-08 Thread Brian A. Anderson
> RTFM > arsort() Ok, so I use asort(), and I don't get the result I wanted. Instead I get the script telling me my foreach loop is wrong on the second test round, as if it did something other than simply sort the array. It seems that I can't access the array now? $nar = array('lma-bg51' => 1,

[PHP] sorting arrays

2005-03-08 Thread Brian A. Anderson
Say I create a "matches" array from a set of SQL queries With each query, an entry is added to my matches array. If the name already exists, its value gets incremented. How can I sort the array based on the highest number of hits? What is the sort method? Say this is the array: array('lma-bg51' =

[PHP] sorting arrays

2005-03-08 Thread Brian A. Anderson
Say I place the results of a set of database queries -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread Brian A. Anderson
> > The below example works: > > -- > > > > ob_start(); > > include("http:/-.-.-.-/datachange.asp"); > > $message = ob_get_clean(); > > > > > > The below example does not work: > > -- > > $URL = "http:/-.-.-.-/datachange.asp$queryStri

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread Brian A. Anderson
let me try it again... The below example works: -- ob_start(); include("http:/-.-.-.-/datachange.asp"); $message = ob_get_clean(); The below example does not work: -- $URL = "http:/-.-.-.-/datachange.asp$queryString"; ob_start();

[PHP] Problems including a url with query string variables

2005-03-04 Thread Brian A. Anderson
I am having a difficulty including a url and passing it to an include statement between it. The problem is when I have a plain url it works, but if I try to pass it something to the query string it does not. Is there some way to format the string differently before including it? ob_start(); ... $r

Re: [PHP] Was: Putting Evaluated Contents...

2005-02-25 Thread Brian A. Anderson
Hey, Now, how about taking that variable and executing it? How might one do this? For instance: I might have an asp page on one server(Yeah, I have to use asp on that server) generate the results in the form of a bit of php code, and pass it to my php script via include method for execution. Wh

Re: [PHP] searching and sorting

2005-01-18 Thread Brian A. Anderson
Quoting: "Richard Lynch" <[EMAIL PROTECTED]> > Unless you KNOW your site will get loads of traffic from the get-go, I'd > focus more on the SIMPLE solutions that you can maintain as a beginner. Quoting: "Richard Lynch" > Unless you KNOW your site will get loads of traffic from the get-go, I'

[PHP] searching and sorting

2005-01-18 Thread Brian A. Anderson
I am new(relatively) to php programing and searching. I am trying to understand the best way to access data and deliver results to searches on a product catalog website. I have two kinds of data that I am sorting and displaying results for. The first is info about specific products, and the other

Re: [PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Brian A. Anderson
I found it $strprice1 = number_format($strprice1, 2, '.', ''); - Original Message ----- From: "Brian A. Anderson" <[EMAIL PROTECTED]> To: Sent: Thursday, December 23, 2004 6:25 AM Subject: [PHP] converting whole or tenth prices to double decimal

[PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Brian A. Anderson
Anybody know the easiest way to convert a number like 2.1 to $2.10 or 2 to $2.00? Silly question? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Brian A. Anderson
Coolbeans guys! :) Thanks, -Brian - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Brian A. Anderson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 09, 2004 4:07 PM Subject: Re: [PHP] silly question - set

[PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Brian A. Anderson
Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the directory. Thanks in advance, -Brian -- PHP General Mailing List (ht