[PHP] activation through email

2006-11-11 Thread Ahmad Al-Twaijiry
Hi everyone I have a site with around 1000 new users everyday, and when every user register my scripts will send a random password to his email. the problem is that I got many users (specially hotmail users) complain that they didn't receive any email (even in the hotmail junk box). I know

Re: [PHP] only one at atime

2006-10-31 Thread Ahmad Al-Twaijiry
, Ahmad Al-Twaijiry wrote: Hi everyone, I create a php script that will run every minute (by cronjob) and update some database tables (php 5, database mysql 5, tables type innodb) the problem is that I want this script to run only one at atime (only one process from this script can run

Re: [PHP] Run script every 30 seconds

2006-10-31 Thread Ahmad Al-Twaijiry
yes, I think you can call it ,semi-real-time monitoring because we want the script when it run it should read some records in database and update other records On 10/31/06, Ed Lazor [EMAIL PROTECTED] wrote: On Oct 30, 2006, at 10:26 AM, Ahmad Al-Twaijiry wrote: is it possible to link

Re: [PHP] only one at atime

2006-10-31 Thread Ahmad Al-Twaijiry
BTW: we use PDO functions to connect to the database and we also made the tables innodb type so if we use $dbh-beginTransaction(); is it will be safe to run the script more than one in the same time ? On 10/31/06, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: We have a virtual stock exchange

[PHP] Run script every 30 seconds

2006-10-30 Thread Ahmad Al-Twaijiry
Hi everyone, I have a script that I want it to run every 30 seconds, the problem is that cronjob can run every 1 minute only, do you have any solution ? -- Ahmad http://www.v-tadawul.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] only one at atime

2006-10-30 Thread Ahmad Al-Twaijiry
Hi everyone, I create a php script that will run every minute (by cronjob) and update some database tables (php 5, database mysql 5, tables type innodb) the problem is that I want this script to run only one at atime (only one process from this script can run ) for example, if the cronjob

Re: [PHP] Run script every 30 seconds

2006-10-30 Thread Ahmad Al-Twaijiry
usleep(1000); //adjust to how often you want to check } On 30/10/2006 17:29 Ahmad Al-Twaijiry wrote: Hi everyone, I have a script that I want it to run every 30 seconds, the problem is that cronjob can run every 1 minute only, do you have any solution ? -- Ahmad http://www.v-tadawul.com

[PHP] Encode text

2006-10-20 Thread Ahmad Al-Twaijiry
Hi everyone I have a variable with UTF-8 text inside it and I want to convert this text to windows encode, is it possible in very easy way ? Thanks --- Ahmad http://www.v-tadawul.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] set cookie with non-english

2006-10-07 Thread Ahmad Al-Twaijiry
, 2006 11:18 pm, Ahmad Al-Twaijiry wrote: I already made the application with cookies, it's will be very defaucalt to go and replace cookies with session, is it possible to use cookies session in the same time ? ( session_start() setcookie in the same page ?) Sure... Though if it's hard

Re: [PHP] set cookie with non-english

2006-10-03 Thread Ahmad Al-Twaijiry
['UserName'] On Mon, October 2, 2006 5:15 pm, Ahmad Al-Twaijiry wrote: Hi everyone in my PHP code I use the following command to set a cookie with non-english word (UTF-8) : @setcookie (UserName,$Check[1]); and in my html page I get this cookie using javascript : script charset=UTF-8 type=text

[PHP] set cookie with non-english

2006-10-02 Thread Ahmad Al-Twaijiry
Hi everyone in my PHP code I use the following command to set a cookie with non-english word (UTF-8) : @setcookie (UserName,$Check[1]); and in my html page I get this cookie using javascript : script charset=UTF-8 type=text/javascript !-- function getCookie (name) { var dc =

[PHP] Rapid application development

2006-09-29 Thread Ahmad Al-Twaijiry
Hi Everyone, I need your feedback in this What is the best RAD (Rapid application development) do you use for PHP to develop an *advance* application in few days or weeks ? I like programming but one this that I hate is the first stage of programming when you start creating the basic code (db

Re: [PHP] array_sum($result)=100

2006-09-25 Thread Ahmad Al-Twaijiry
+0300, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: I have array of numbers and I want to get out of it a list of numbers that if I sum them it will be 100, here is my list (for example ) : I think you can try to sort the array in reverse order, and then calculate the sum of numbers in loops (end

Re: [PHP] array_sum($result)=100

2006-09-25 Thread Ahmad Al-Twaijiry
(in the mean time if someone can help me in anyway I really appreciate it) On 9/25/06, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2006-09-25 at 16:42 +0100, Robin Vickery wrote: On 24/09/06, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: Hi everyone I have array of numbers and I want to get out

Re: [PHP] array_sum($result)=100

2006-09-25 Thread Ahmad Al-Twaijiry
[$n] || ($list[$n]$b $A[$b-$list[$n]]!=-1))) $A[$b]=$n; } } PrintSubsetSUM($A, $price,$list,$result); return $result; } ? On 9/25/06, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: Robin, you made it harder for me specially with wikipedia artical :) (I told you I'm bad with writing code from

[PHP] array_sum($result)=100

2006-09-24 Thread Ahmad Al-Twaijiry
Hi everyone I have array of numbers and I want to get out of it a list of numbers that if I sum them it will be 100, here is my list (for example ) : $list = array(10,20,10,10,30,50,33,110,381,338,20,11,200,100); I want the result to be : $result = array( 10,20,10,10,50); as you can see in