Re: [PHP] Re: LoginShare | How to authenticate once, and login to different websites

2009-09-02 Thread Behzad
ilable php library OAuth? > > http://oauth.net/ > > On 9/1/09, Shawn McKenzie wrote: > > Behzad wrote: > >> Dear list, > >> > >> i'm trying to integrate two php-driven web applications, which both > >> require the user to authenticate using

Re: [PHP] Re: LoginShare | How to authenticate once, and login to different websites

2009-09-01 Thread Behzad
Thank you all for your answers. i was looking for a simple and fast answer -> I'm going to store the a unique id in the database, and pass it between applications using the $_SESSION. Shawn and Martin, Thank you very much for your help. Kind regards, -behzad

[PHP] LoginShare | How to authenticate once, and login to different websites

2009-08-31 Thread Behzad
. The challenge is to automatically authenticate the user on the 2nd application as well. i'm wondering how? Is it secure to store the username and password in the $_SESSION, and share the session between the two applications? Please let me know what do you think. Thank you in advance, -behzad

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-20 Thread Behzad
ley Sheridan > > On Tue, 2009-08-18 at 19:15 +0430, Behzad wrote: > >> > >> I'm faced with an interesting and challenging problem. > >> > >> Consider a database, designed for a hotel. > >> At any given time, each room has a different status: It

Re: [PHP] Re: DB Question | A hotel reservation scenario

2009-08-18 Thread Behzad
s the application excist or u are doing a new one? > > if it excist, have a look how the availability of a room is calculated and > then go from there. it would be the same calculation, just with backwards > dates. > > hope that helps > > ralph_def...@yahoo.de >

[PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Behzad
Dear list, e-Greetings! I'm faced with an interesting and challenging problem. Consider a database, designed for a hotel. At any given time, each room has a different status: It's Busy or Reserved, or Free. It's easy to retrieve number of Free rooms at the current time. But how can I count the n

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Behzad
week. > > -- > Dotan Cohen > > http://what-is-what.com > http://gibberish.co.il > > א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת > ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي > А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я > а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я > ä-ö-ü-ß-Ä-Ö-Ü > -- Kind regards, -behzad

[PHP] Thank you everyone, What a wonderful world

2009-01-01 Thread Behzad
responsible for this event. What a shame for mankind in 21th century. Forget this. This is SPAM and/or PROPAGANDA! CHEERS! -behzad

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] RegEx to check for non-Latin characters

2008-11-14 Thread Behzad
Latin and Numerical characters in a string. 2) Regex to check whether the string only consists of certain characters. Thanks you very much in adnvace, Kind regards, -behzad