Re: [PHP] count characters without space

2003-01-11 Thread Jeffrey B. Ferland
> who knowes how to count the charcaters in a string without the space > character? Using a regular expression to strip out all the spaces before passing to the word counting function seems easiest. You'll be left to adapt it to PHP, but the regexp is: 's/ //g' That removes all spaces. If it gives

Re: [PHP] Suggestions on FAQ application?

2003-01-11 Thread Jeffrey B. Ferland
> Why re-invent what is already written? I'm well aware that it's easy to > write but there may be something out there already that suits my needs and > has some features that I hadn't thought of. If you don't have a suggestion > on a package please spare me the rude replies which seem to run rampa

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jeffrey B. Ferland
> Not to cause a flame war, but, MySQL and PostgreSQL are both excellent > choices, MySQL tends to be a lighter less feature rich database while > PostgreSQL tends to have more features, perform better under load, etc. Under differing types of load, yes. MySQL is more hit-based, while PostgreSQL d

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jeffrey B. Ferland
> > I'm just deciding which DB to use for my projects and I'm not clear with one > > thing... When considering a database for web, is MySQL good enough? I read > > it only supports table locking, which is not very satisfying in such a > > multiuser environment as the internet.. > > PostgreSQL has t

Re: [PHP] Guestbook

2002-12-01 Thread Jeffrey B. Ferland
> The quick solution, if you intend to continue the autoincrement field, is to > number the entries manually when you're displaying them: Something along the > lines of: > > $count = 0; > while ($row(mysql_fetch_array($result_id))) { > $count++; > echo "Entry $count"; > ... > ..

Re: [PHP] Function passed as argument to function

2002-12-01 Thread Jeffrey B. Ferland
> > For reference, see http://autocracy.homelinux.org/template.php and > > http://autocracy.homelinux.org/error.php > > Unless you have a good reason to do otherwise please post your code here. > People would be less inclined to help if they have to go about clicking on > links to see what your pro

Re: [PHP] Function passed as argument to function

2002-11-30 Thread Jeffrey B . Ferland
On Saturday 30 November 2002 03:14 pm, you wrote: > On Sunday 01 December 2002 03:54, Jeffrey B.Ferland wrote: > > std_layout("Title here", list_writings(poetry)) > > > > both std_layout and list_writings are user-defined functions. > > std_layout() echo's the two arguments that it takes at select

[PHP] Function passed as argument to function

2002-11-30 Thread Jeffrey B . Ferland
std_layout("Title here", list_writings(poetry)) both std_layout and list_writings are user-defined functions. std_layout() echo's the two arguments that it takes at select points in its execution. I want to the output of list_writings() to be an argument for std_layout(). -Jeff SIG: HUP -- P