Re: [PHP] aaaaaaaaaaaaaaa

2001-10-25 Thread Lasse
"Douglas Winslow" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Franco Breciano wrote: > > > a > > > for($i=0;$i<13;$i++){echo chr(97+($i?3:0));} LOL! Brilliant... :-) -- Lasse -- P

Re: [PHP] search

2001-07-03 Thread Lasse
ray using > a ',' as the seperator. Then I loop while there are elements in this new > array and build the search query. Actually strings are also arrays (at least in PHP4)... Try this for example: $s = 'dogs'; echo $s[strlen($s)-1]; HTH -- Lasse -- PHP General Mai

Re: [PHP] is_alpha_numeric ?

2001-07-06 Thread Lasse
"scott [gts]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you could also use this: > > function is_alphanum($data) { > return preg_match('/^\w+$/', $data); > } Watch out though... IIRC \w also includes un

[PHP] Re: when to delete a temporary file ?

2001-07-06 Thread Lasse
s time out BTW? That should make it possible to check for any temp files whose session isn't alive anymore and delete them. Since the corresponding session is dead anyway the image can be safely deleted... Or am I missing something? -- Lasse -- PHP General Mailing List (http://www.ph

[PHP] Re: Must Have Cookies. PHP/JavaScript

2001-07-06 Thread Lasse
Um... Can't you just set a cookie and see if you get it back on the next page load? -- Lasse "Jeff Gannaway" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK, I'm working on a site that absolutely must use a cookie contai

Re: [PHP] Next Book

2001-07-08 Thread Lasse
any tings... :-) Definetely not a beginner's book though... Also it has a chapter on "hacking the PHP core" contatining information you probably won't find anywhere else... -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] Re: when to delete a temporary file ?

2001-07-08 Thread Lasse
ng routines... This way you'd have complete control over your sessions... -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: flat file db

2001-07-10 Thread Lasse
Put it outside webscope, that way it won't be possible to browse the db-file directly... -- Lasse "Jon Yaggie" <[EMAIL PROTECTED]> wrote in message 030101c1095b$f235f1a0$0100a8c0@piiimonster">news:030101c1095b$f235f1a0$0100a8c0@piiimonster... i am setting up a f

[PHP] Re: Object oriented if statements

2001-07-10 Thread Lasse
else { echo ("PrintFormat2"); } -- Lasse "Patterson Liddle" <[EMAIL PROTECTED]> wrote in message 00ac01c10967$52da3c40$ec0687d9@patlid">news:00ac01c10967$52da3c40$ec0687d9@patlid... I wonder if someone would be kind enough

[PHP] Bit-flags in tables?

2001-07-11 Thread Lasse
tatype and attributes? Also, are there any other caveats I should know about? (e.g. PHP's handling of integers) Back in the good ol' 680x0 ASM days this was so easy! :-) TIA -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] Re: Mail Bcc to a $variable?

2001-07-11 Thread Lasse
:$recipients"; and you should be fine Are $recipients ;-seperated properly? -- Lasse "Marcus James Christian" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > Ok I've got a script going to a Bcc but

[PHP] Re: HTML tags in database fields

2001-07-11 Thread Lasse
up to the user...) With a good contains_open_tags() function you'll also be able to accept more tags like TABLE and DIV (with some attribute filtering) since their (more or less) unlikely to cause trouble as long as their properly closed... -- Lasse -- PHP General Mailing List (http://www.

[PHP] Popquiz...

2001-07-11 Thread Lasse
...Or call it a riddle.. Whatever... :-) What did the following code look like in it's original form? function bitdef($prefix, $name, $bitnum) { define($prefix."B_".$name, $bitnum); define($prefix."F_".$name, 1 << $bitnum); } -- Lasse --

[PHP] Re: Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread Lasse
t+inside+polygon #1 match is http://www.dfanning.com/tips/point_in_polygon.html -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Lasse
> which is a non-existent address. DOH! Missed that one... :-) -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Popquiz...

2001-07-12 Thread Lasse
"Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How you mean *in it's original form* ? > > "Lasse" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] regex help

2001-07-16 Thread Lasse
I think he means swap... -- Lasse "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message 000601c10e81$03aca260$22ebd73f@2pqjp01">news:000601c10e81$03aca260$22ebd73f@2pqjp01... > What exactly are you trying to do? "Switch around" in what way? > > Jack &

Re: [PHP] howw do I programm a PREV & Next mechanism in PHP? Help Please!!

2001-10-04 Thread Lasse
cks or something? Or du you just have an over-powered under-loaded server? I could use a bit of speed at my own site.. :-) -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] PHP and XML parser (expat)

2002-12-29 Thread Lasse Tarp
ound that out :-) I checked out the manual and found a tip: libexpat.a: $(OBJS) ar -rc $@ $(OBJS) ranlib $@ but i do not know what to do with it ? How do I get the XML parser to work with PHP ??? Kind Regards Lasse Tarp

[PHP] Making a location with http authentication

2003-02-10 Thread Lasse Laursen
y fails :( However if I make a metatag with a refresh (GET) to the same url then it works just fine. Am I missing something? Or? Your input and help is appreciated - please answer to this email as well :-) Thanks in advance Regards -- Lasse Laursen <[EMAIL PROTECTED]> - Systems De

[PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Lasse Laursen
Hi all, We are "debugging" some web applications to try to determine where the problems with long execution time is. Is it possible to log the execution time of each script executed to a logfile? The PHP processes are run as FastCGI under Zeus. Regards -- Lasse Laursen · VP, Hosting

Re: [PHP] Phpadsnew?

2003-03-27 Thread Lasse Laursen
Hi, No - phpads is a bunch of PHP scripts. So if you have any problems with spawned processes then it's your webserver acting up. Regards -- Lasse Laursen <[EMAIL PROTECTED]> - Systems Developer NetGroup A/S, St. Kongensgade 40H, DK-1264 København K, Denmark Phone: +45 3370 1526 - Fa

[PHP] exec(), passthru(), system() and shell_exec() hang.

2003-04-01 Thread Lasse Riis
hang), but that doesn't get my service restarted I have edited my /etc/sudoers file so that the apache user can execute /sbin/service. It works fine in console (with another username (can't really su to apache)) Help me Lasse Riis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload user account

2001-03-13 Thread Lasse Laurila
On what user account are PHP uploads handled? I tested the upload script from PHP docs and it worked fine only if I gave the world write access to the destination directory (the one I moved the file with move_uploaded_file() function). How should this be done safely? Lasse -- PHP General

[PHP] XML / XSLT parsing using PHP

2002-01-24 Thread Lasse Laursen
ot;x";) and therefor we cannot use the xslt_process function? Of cause we can store the XML var. in a temporary location and then read the file, but that's an extreamly ugly approach! :) Any ideas? I'm looking forward to your replies :) Yours -- Lasse Laursen <[EMAIL PROTE

Re: [PHP] Do not get any PHP-binary in install?

2001-07-16 Thread Lasse Andersson
No it isn't there either. My configure, make and make install do not seem to create a 'php' binary. Lasse Scott wrote: > i know it's silly to ask -- > but did you look for "php" in /usr/local/bin/ > > > -Original Message- >

[PHP] Parse error: parse error, unexpected '='

2004-04-20 Thread Lasse Motroen
I have received some code and am trying to run it. However, I get the following error: *Parse error*: parse error, unexpected '=', expecting ')' It happens on this line when &$args=array() is reached: function array_key_remove(&$args=array(), $keys=array(),$replacement=NULL) I have php-4.2.2-1

[PHP] mysql_connect

2004-04-20 Thread Lasse Motroen
Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get is: *Fatal error*: Call to undefined function: mysql_connect() What do I have to do in order to make it work? Im using php-4.2.2-17. Thank

[PHP] mysql_connect

2004-04-20 Thread Lasse Motroen
(I sent this message earlier but I got a message saying that it was not sent, if you did receive it, I appologize for sending it again) Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get i

[PHP] PHP /MySQL problem on SMP machines

2004-04-25 Thread Lasse Laursen
vance. Regards -- Lasse Laursen · VP, Hosting Technology · NetGroup A/S St. Kongensgade 40H · DK-1264 Copenhagen K, Denmark Phone: +45 3370 1526 · Fax: +45 3313 0066 - Don't be fooled by cheap finnish imitations - BSD is the One True Code -- PHP General Mailing List (http://www.ph

Re: [PHP] PHP /MySQL problem on SMP machines

2004-04-25 Thread Lasse Laursen
Hi Curt, Thanks for your email - please find answers below: Regards -- Lasse Laursen · VP, Hosting Technology · NetGroup A/S St. Kongensgade 40H · DK-1264 Copenhagen K, Denmark Phone: +45 3370 1526 · Fax: +45 3313 0066 - Don't be fooled by cheap finnish imitations - BSD is the One True

[PHP] Getting the name of the Class

2004-05-26 Thread Lasse Cederström
The use of $this – not working since im not calling it as an object, but to the class directly. Looking forward to someone poking me in the right direction :) Lasse

[PHP] session.cookie_path problem

2007-06-10 Thread Lasse Brandt
x27; - not as expected. I would expect that each $_SESSION would only hold its own data. And I can see from the print_r(session_get_cookie_params()) that the cookie has changed its path like it should according to my .htaccess file. Am I missing something obvious? -- Kind Regards Lasse Brandt

[PHP] Re: session.cookie_path problem

2007-06-10 Thread Lasse Brandt
browser and going straight to /app1/ and then /app2/ I actually got the correct result. So sorry to disturb you - have a nice day :) -- Kind Regards Lasse Brandt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php