Re: [PHP] Re: Capturing user's IP Address

2005-02-25 Thread Jon-Eirik Pettersen
On Thu, 24 Feb 2005 09:42:21 +, Nick Talbott [EMAIL PROTECTED] wrote: On Thursday 24 February 2005 9:38 am, N Deepak wrote: Jacques wrote: Which function can I use to capture a user's IP Address when he registers on my site. I would like to store this value in a database. print

Re: [PHP] Odd Behaviour: DIE function

2004-11-25 Thread Jon-Eirik Pettersen
Andre Dubuc wrote: I've noticed some strange behaviour with respect to validation of user input. Normally, using Linux, the die function in user input validation works as expected. However, the same code in IE, the DIE function does not work as expected. I've noticed that fields, that should

Re: [PHP] mail() problem

2004-11-24 Thread Jon-Eirik Pettersen
Johan van Zyl wrote: Hi All I use sample code from PHPFreaks i.e. mail($email_address, $subject, $message, From: realcorp.net Webmaster[EMAIL PROTECTED]\nX-Mailer: PHP/ . phpversion()); When the e-mail address is [EMAIL PROTECTED] (hosted by my telco/isp) it works. When I try [EMAIL PROTECTED]

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Jon-EIrik Pettersen
Mulley, Nikhil wrote: Hi All, I have a password file , which has all the passwords words encrypted with the Crypt Function I know that Crypt uses one-way algorithm to generate the encryptions and PHP has no Decrypt function , ( but can it be developed to have one ?) But I am eager to know

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread Jon-Eirik Pettersen
Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread Jon-Eirik Pettersen
Perry Jönsson wrote: Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. What it the purpose of the .inc file then? Not really anything. Just

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Jon-Eirik Pettersen
Daniel Schierbeck wrote: Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation... One reason is that a

Re: [PHP] PHP script + read file

2004-11-20 Thread Jon-EIrik Pettersen
Jerry Swanson wrote: I know how to read a file. But the problem is different, I have directory that has more than 250 files. I need to read each file and process it. But How I know what file to read? ls -l (show all files). How I can select each file without knowing name? The file will be process