Re: [PHP] Pluralize a word for searching a database
I don't think you can since the plural form of English words can vary, woman, women, families, family, foot, feet, church, churches, sheep, sheep, road, roads... ? rm --- "Robert V. Zwink" [EMAIL PROTECTED] wrote: Has anyone every written a function in php to pluralize an english word, particularly when searching a database? function pluralize($word){ return array of pluralized words; } Any help would be appreciated. Seems like their might be a nice regex waiting to handle this? Thanks! Robert Zwink http://zwink.levitate.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Daily Rotating Page
We use something like this to changing some sections of the web page based on the day of the year #day number of the year, ex day 181, 183, 183 $subPartQuery=date("z")"; or # day of the week 0=sunday mon=1, tue=3 $subPartQuery=date("w")"; select from database where day_col = $subPartQuery etc. etc. you have to double check the mysql syntax rm On Wed, 28 Feb 2001 [EMAIL PROTECTED] wrote: Date: Wed, 28 Feb 2001 20:30:47 EST From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Daily Rotating Page I have set up a template for a page that displays the featured product of the day. All data is stored in a mySQL db. So every day I want to feature a different product. Each product contains an entry in the db for picture, description, and hotlink. What would be the best way to go about this? Does anybody have any sample code on performing this specific task once a day? Your help is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] very off the topic questions here but hope someone can help out
FWIW, some time back I had to change the owner of a domain name from my name to a corp name. Basically, you have to get the forms from Network Solutions, fill out the page, get it notorized and fax it back to network solutions, you can mail it if you want. Change over takes a couple of days if you fax it I assume this is what your taking about. rm __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help with mass import to MySQL using PHP
No answer, but a question. I noticed you're using, in effect, two id's for each entry, a id number and a doc id number. The first is accomplished thru auto-increment. Wouldn't it be easier to us just one id number, a=LAST_INSERT_ID(id+b) and reserve the first 10k numbers (b), whatever is needed for your old files then run a php code to format your old entries and increment those 1 - 10and forget about random numbers. If I'm not mistaken, if you generate random numbers you'll have to check, to be on the safe side, to make sure the random number wasn't used for someother doc. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Terrible Hosting Experience
Actually alabanza hosts a number of "hosting" companies from their baltimore sp? location. About two weeks ago a "hosting" service I used went down, they use alabanza as well, down for almost two days. Then when it did come up, the permissions were all wrong and I couldn't change the files for a time. The problem appears to be with the alabanza servers and that caused problems for a number of "hosting" services. rm --- Thomas Deliduka [EMAIL PROTECTED] wrote: I just need to tell all of you about my terrible hosting experience with yourwebhost.com which owned by hostingventures.com which is also kinda owned by alabanza.com (same owners, I believe, different company) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ereg match problem
There's a code section at zend.com. I noticed someone wrote an email check routine that checks for all domains and the correct format. You might try there. rm --- "W.D." [EMAIL PROTECTED] wrote: I'm testing email address, but want to test not only characters but the @ sign and for .com, .net, .org, or .tv. How would I include all of these? $test = $email if( ereg("[a-zA-Z0-9]+)\@([a-zA-Z0-9]+)\.com how would I include the rest? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] High and Low ASCII characters
We process a lot of documents, some text, some html, etc. I need to be able to strip out all characters below an ascii number and above an ascii number. Currently I check character by character, above or below a particular number the character is deleted or replaced in the new string. Anyone run across a quicker way to do this in php3I checked the usual places and can't find anything or I missed something.any help appreciated rm __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]