Re: [PHP] HTTP Authentication

2001-10-22 Thread Stig-Ørjan Smelror
start. Security: Checking the IP address of the user. Performance: to DB or not to DB, that is the question! Security again: what kind of password algoritm are you going to use. And so on and so forth. I wish you the best of luck. I made such a script just a month ago :) -- Stig-Ørjan Smelror Sys

Re: [PHP] printing comma-delimited lists

2001-10-04 Thread Stig-Ørjan Smelror
> } > } > > > Question is, is there a more elegant way? I'm thinking of something > like DTML's sequence-start and sequence-end, in a foreach > construction. > > djo > You could try implode() $lis = implode(",", $arr); -- Stig-Ørja

RE: [PHP] Quickie

2001-09-21 Thread Stig-Ørjan Smelror
> If nothing is beeing sent to output on the page then use header() else > you need to use javascript. > > > Niklas > if headers are sent. Use header( "Location: file.php" ), as noted earlier, if no headers are sent. -- Stig-Ørjan Smelror Systemutvik

Re: Fw: [PHP] fired!

2001-09-21 Thread Stig-Ørjan Smelror
;) dot com's suffers badly! BTW. I'm not fired, but I'm looking for other solutions to the money problem. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N-0123 Oslo, Norway tel. +47 22 09 28 80 fax. +47 22 09 28 81 http://www.lincom.no

Re: [PHP] Am I right or wrong?

2001-09-03 Thread Stig-Ørjan Smelror
screw you some way or another... Always look at the small print ;) And you're right... it's wrong of them... imho. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N-0123 Oslo, Norway tel. +47 22 09 28 80 fax. +47 22 09 28 81 http://www.l

[PHP] help with strings...

2001-08-31 Thread Stig-Ørjan Smelror
Hei all. I've got this string, $string = "test"; and I want to make a $t; out of $string. Is this possible? I tried ${substr($string, 0, 1)}, but that didn't work ;) Any help appreciated. TIA. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien

Re: [PHP] Why lynx don't work with cron?

2001-08-21 Thread Stig-Ørjan Smelror
na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É >fácil e grátis! > http://br.geocities.yahoo.com/ > > One thing comes to mind. Compile PHP as a CGI and use that to run your scipts ;) -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801

[PHP] Meaningful URL Validator

2001-08-17 Thread Stig-Ørjan Smelror
meaningful message to the user. E.g. if it's a 404, the user will get a message saying the the page was not found. Has anybody done this before and have the kind heart to share it with me? ;) TIA -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - V

Re: [PHP] .htaccess username

2001-08-16 Thread Stig-Ørjan Smelror
patrick >>pass: linux >> >>can PHP reads out the usersname "patrick" ?? >> >>(and if ,... how? ;) >> >> > > $PHP_AUTH_USER and $PHP_AUTH_PW. > > It's also possible to use $REMOTE_USER. I don't know of any $REMOTE_PASS, so th

[PHP] LDAP trouble! Need help

2001-06-20 Thread Stig-Ørjan Smelror
tried with a bunch of other attributes with different objectclasses, with the same result. I'm using PHP 4.0.5 (Tried with 4.0.4pl1 too) and OpenLDAP 2.0.7 Thanks in advance. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N-0123 Oslo, Norway tel. +47 22 09 28 80 fax. +47 22 09 28 81 http://www.lincom.no/