[PHP] Blocking login on the same username from diffrent computers

2005-07-13 Thread YaronKh
Hello I'm looking for away to block login to my web site from different computers on the same username, In other word: Only one person can be logged on to the web site with a username, if anyone else tries to log on while the first person is still logged on he will be blocked until the

[PHP] Number of users

2005-07-12 Thread YaronKh
Hello all, I have some questions and I hope someone could answer them 1. Is there a way to find out how many users currently browsing pages at my web site? 2. If I write down the IP of a user that log on my web site, can I check later if the IP still browsing pages at my web

RE: [PHP] JavaScript+Html+PH

2005-05-17 Thread YaronKh
yes -Original Message- From: [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 7:26 AM To: php-general@lists.php.net Subject: [PHP] JavaScript+Html+PH Hi Can I use JavaScript+Html+PHP in a file? ? Function sort_asc() { $sql= .order by customer_id ASC; }

RE: [PHP] chat script

2005-04-17 Thread YaronKh
This error message is because you are trying to send header information after you already printed some text. The header information have to come before any other information sent to the browser meaning : ?php Print (hello); header('Location: http://www.example.com/'); ? WON'T WORK!!! But

RE: [PHP] Image and PHP

2005-04-14 Thread YaronKh
Hi Mario you can use something like img src=blabla.jpg ONLOAD=delete_pic.php?fn=blabla.jpg And in delete_pic.php write something like: unlink ($_GET['fn']); -Original Message- From: Mario de Frutos Dieguez [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 10:53 AM To: [EMAIL

RE: [PHP] Image and PHP -Correction

2005-04-14 Thread YaronKh
Correction : u need to use a hidden frame or iframe using style=display:none let call the hidden frame myhframe now in you code write img src=blabla.jpg onload = myhframe.location = 'delete_pic.php?fn=blabla.jpg' -Original Message- From: Sent: Thursday, April 14, 2005 1:20 PM To:

RE: [PHP] php + mysql: binary arrays

2005-03-29 Thread YaronKh
Hi First of all you can use the Bitwise Operators to set/clear a bit Let say $a is '00100' meaning group 2 is set and you want to set group 4 then write: $a = $a | (pow(2 ,4)); //using OR Operator Now $a is '10100' Let say that you want to unset group 2: $a = $a ^ (pow(2,2)); //using XOR

RE: [PHP] Damn escaping... Grunf...

2005-03-21 Thread YaronKh
Hi Try using instead of ' Meaning you should write: Print (a href =\http://www.dte.ua.pt/cv/email=?.$recordSet-fields[0]. \ br /); -Original Message- From: Mrio Gamito [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:50 PM To: php-general@lists.php.net Subject: [PHP] Damn

RE: [PHP] VERY basic function question

2005-03-17 Thread YaronKh
Hi Dont call you function count -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 10:25 AM To: php-general@lists.php.net Subject: [PHP] VERY basic function question I'm trying to learn functions (just started). I can't see why this fails:

RE: [PHP] VERY basic function question

2005-03-17 Thread YaronKh
And another thing Let say you called you function count1 Change : count1($setvar); to : $result = count1($setvar); echo $result; -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 10:25 AM To: php-general@lists.php.net Subject: [PHP] VERY

RE: [PHP] destructor not called for static members?

2005-03-10 Thread YaronKh
Hi It is an expected behavior because when you define a static variable it is shared by all objects of the same class. If When you unset one object and the destruct of the static object will be called, all the other objects will lose the static var as well. Hope I've helped yaron

RE: [PHP] Passwords?

2005-03-06 Thread YaronKh
Hi Rory You can use crypt to encode a password, let say you want the password to be my password, create a new php file : echo crypt(my password); then you get a unique encoded string something like 'ABC12Fdfi654sdfkfpr67UPL' copy it and delete the php file in your password validation

RE: [PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread YaronKh
Hi What you can do is change the php.ini file In the [session] section like this: session.use_cookies = 0 session.use_only_cookies = 0 session.auto_start = 0 and now make sure that all script are running under the same session id at the beginning of each php script you should add the