Re: [PHP] mySQL query question

2008-11-15 Thread Jim Lucas
Michael S. Dunsavage wrote: On Fri, 2008-11-14 at 12:46 -0800, Jim Lucas wrote: SELECT @confirm_number AS confirm_number; Are we not SELECTING the column value here? should we be selecting confirm_number as confirm_number? The idea is to give you the number that was used in the INSERT sta

[PHP] Re: Days until Easter and Christmas

2008-11-15 Thread David Robley
Ron Piggott wrote: > Is there a way to modify this code so it will always be the *next* > Christmas and Easter? > > > $todays_date_seasonal_format = DATE("Y-m-d"); > $next_Christmas = DATE("Y") . "-12-25"; > $next_Easter = date("D d M Y", strtotime("2009-03-21 > +".easter_days(2009)." days"));

Re: [PHP] user access/roles/privs functionality

2008-11-15 Thread Eric Butera
On Sat, Nov 15, 2008 at 11:21 AM, bruce <[EMAIL PROTECTED]> wrote: > Hi list... > > I need a way of managing users/teams/etc.. implementing roles/access > rights/privs,etc... > > I'd like a way of being able to have users "report to" the resource above > them, ie, the ability to have a hierarchical

Re: [PHP] ability to find include files...

2008-11-15 Thread Andrew Ballard
On Sat, Nov 15, 2008 at 6:07 PM, bruce <[EMAIL PROTECTED]> wrote: > > Hi list... > > starting to go through a debug/understanding session of a couple of php web > apps. i'm wondering if there's any kind of tool/method that i can use to see > which files are accessed/included/required when a given p

[PHP] Days until Easter and Christmas

2008-11-15 Thread Ron Piggott
Is there a way to modify this code so it will always be the *next* Christmas and Easter? "; echo $days_until_Easter . ""; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ability to find include files...

2008-11-15 Thread bruce
Hi list... starting to go through a debug/understanding session of a couple of php web apps. i'm wondering if there's any kind of tool/method that i can use to see which files are accessed/included/required when a given page is displayed.. this would allow me to quickly understand the "flow" of t

[PHP] Another question about Google maps

2008-11-15 Thread tedd
Hi gang: I posted this question on the Google Map Discussion group/list thingie, but got zip in replies. Maybe someone here might have an idea. Here's the url: http://masoncollision.com/contact.php In both Safari and FireFox for the Mac (I have not tested it with other browsers) as the pag

Re: [PHP] RegEx to check for non-Latin characters

2008-11-15 Thread Behzad
Thanks everyone. I guess I find the answer: *// return true if the $str ONLY consists of Arabic characters and space-character public function isArabicString($str) { return preg_match('/^([\p{Arabic}]|\s)*$/u', $str); } * PHP 5.1.x or higher is required. @see: http://www.re

[PHP] user access/roles/privs functionality

2008-11-15 Thread bruce
Hi list... I need a way of managing users/teams/etc.. implementing roles/access rights/privs,etc... I'd like a way of being able to have users "report to" the resource above them, ie, the ability to have a hierarchical kind of tree approach would be good as wel, as this would allow different user

Re: [PHP] RegEx to check for non-Latin characters

2008-11-15 Thread Yeti
Hi Behzad, I would try a different approach ... EXAMPLE (UTF-8): http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Persia '; } function mbStringToArray ($string, $encoding) { $strlen = mb_strlen($string); while ($strlen) { $array[] = mb_s

Re: [PHP] Variable Argument List

2008-11-15 Thread Richard Heyes
> ... And you might also be interested in func_get_args(), which returns an array of args passed to the function (don't know what it does if used outside a function. Probably get an error). -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November

Re: [PHP] RegEx to check for non-Latin characters

2008-11-15 Thread Richard Heyes
> For a Form Validation process, I need a function to avoid Latin characters > to be provided as the first or last name. Since we expect our users to > enter their personal info in Persian. > > Do you know any regular expression to provide this functionality? > 1) Regex to check whether there are L