[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 tha

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 virt

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

Re: [PHP] only one at atime

2006-10-31 Thread Ahmad Al-Twaijiry
:14 AM, 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 > on

Re: [PHP] Run script every 30 seconds

2006-10-30 Thread Ahmad Al-Twaijiry
$t=time(); > YourMainScriptFunction(); > } > else 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

[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 start

[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] 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
Tue, October 3, 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 i

Re: [PHP] set cookie with non-english

2006-10-03 Thread Ahmad Al-Twaijiry
tever string you want in $_SESSION['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"

[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 :