Re: [PHP] Fwd: ezmlm warning

2011-07-20 Thread Jan Reiter
Hi, I'm in Germany and I got it, too. I get those about once in 6 month ... nothing to worry about, is it?? Regards Original-Nachricht Datum: Wed, 20 Jul 2011 07:12:58 -0400 Von: Tim Thorburn immor...@nwconx.net An: php-general@lists.php.net Betreff: Re: [PHP] Fwd: ezmlm

Re: [PHP] SQL Syntax [improved SQL]

2010-06-16 Thread Jan Reiter
Hi, this is the solution I came up with, that is over 10 times faster than my first attemps. Tested @31,871 entries in table 'picture' and 222,712 entries in table 'picture_attrib_rel'. Old Version: SELECT * FROM picture as p INNER JOIN picture_attrib_rel as pr1 ON (p.pid = pr1.pid) INNER

RE: [PHP] SQL Syntax

2010-06-15 Thread Jan Reiter
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, June 16, 2010 3:09 AM To: Jan Reiter Cc: php-general@lists.php.net Subject: Re: [PHP] SQL Syntax On Wed, 2010-06-16 at 02:58 +0200, Jan Reiter wrote: Hi folks! I'm kind of ashamed to ask a question, as I haven't followed

[PHP] SQL Syntax

2010-06-15 Thread Jan Reiter
Hi folks! I'm kind of ashamed to ask a question, as I haven't followed this list very much lately. This isn't exactly a PHP question, but since mysql is the most popular database engine used with php, I figured someone here might have an idea. I have 2 tables. Table A containing 2

RE: [PHP] get an object property

2009-09-12 Thread Jan Reiter
I have to agree, your example works fine for me. For testing I used the latest stable Release of server2go with PHP 5.2.10. Or do you want to use something like that: class o { protected $arr = array('a'=0); function o($n){$this-arr['a'] = $n;} function getA(){return

[PHP] preg_match()

2009-09-09 Thread Jan Reiter
Good Afternoon. This shouldn't be too complicated, but I can't come up with a solution for the problem right now. It's about RegEx in PHP (5.2) Is there a way to capture ALL sub elements of an expression like preg_match('@a(?[0-9])*b@' ,a2345678b , $matches); ?? This would produce

RE: [PHP] preg_match()

2009-09-09 Thread Jan Reiter
to avoid. But maybe that's what I have to after all if there is no other way. Thanks Regards, Jan -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, September 09, 2009 6:21 PM To: Jan Reiter Cc: php-general@lists.php.net Subject: Re: [PHP] preg_match

RE: [PHP] preg_match()

2009-09-09 Thread Jan Reiter
); return true; } Regards -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Wednesday, September 09, 2009 7:57 PM To: Jan Reiter Cc: php-general@lists.php.net Subject: [PHP] Re: preg_match() Jan Reiter wrote: Good Afternoon. This shouldn't be too

RE: [PHP] crypt salt question

2007-08-30 Thread Jan Reiter
Hi! How did you do the comparison with the PG_SQL database?? I believe there is a UNIX function, able to retrieve the salt from a crypt string, or one that can do the comparison, without a slat given. But I'm not quite sure. I'm gonna investigate that. But how did you compare passwords before,

RE: [PHP] crypt salt question

2007-08-30 Thread Jan Reiter
... Greets, Jan -Original Message- From: Jan Reiter [mailto:[EMAIL PROTECTED] Sent: Friday, August 31, 2007 12:07 AM To: 'Andras Kende'; PHP Mailing List Subject: RE: [PHP] crypt salt question Hi! How did you do the comparison with the PG_SQL database?? I believe there is a UNIX

RE: [PHP] export data of html table

2007-08-22 Thread Jan Reiter
Hi! I'm not quite sure if I got you right, but if you want a simple button to print the current web-page use the browsers built-in printing function. Just link to javascript:window.print(); to bring up the printing dialogue. Is this a simple html-table, or is it something special? Or render it

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Jan Reiter
Hi! You don't have to end your string when placing an array value. {} will tell the parser to interpret the text between as a variable. Try: echo trtdinput name=\title\ type=\text\ value=\{$row['title']}\ //td; Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Programmer in the US?

2007-08-21 Thread Jan Reiter
Hi there! I spent the last 4 Years ('03-'07) as an Officer with the German Air Force collecting massive experience with large university networks (programming, maintenance) and on electronic warfare live training exercises (management, IT Officer), but I studied Space and Aeronautics and did not

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
Hi! Phil: Still I am curious what var_dump($userValues['afterDark']); at line 102.5 would return. I managed to recreate that fault with $var['test'] = blah; echo ($var['test']); if( $var['test'] == 0) { echo ok; } //this returns blahok -- not expected. In my case Var_dump()

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 1:47 AM To: Jan Reiter Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] I know this is not easy and I'm not stupid but... Jan Reiter wrote: Hi! Phil: Still I am curious what var_dump

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
Ummh, no! (int) and (integer) perform a C style atoi() conversion. (int)blah = integer 0 (int) = integer 0 (int)1= integer 1 (int)12 = integer 12 (1 == 0) = false (blah == 0) = true ( (int)$userValues['afterDark'] === 0 ) only is true, if $userValues['afterDark'] is a

RE: [PHP] preg_match_all to match img tags

2007-08-09 Thread Jan Reiter
Maybe this is what you are searching for: $images = array(); $data = blah img src=img.png width=\400\ height='600' src=blah.png img src=gg.tiff; preg_match_all(/\ *[img][^\]*[.]*\/i, $data, $matches); foreach($matches[0] as $match) { preg_match_all(/(src|height|width)*=

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-07 Thread Jan Reiter
D'oh! The solution is so simple and clean that it almost hurts. I didn't see it in the first approach! There is a way to go all this, without using file() or file_get_contents()! Cuz this would require to use a URL wrapper to retrieve compiled code, which would cost overhead on the local

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Hi! If you want file_get_contents() to open the compiled data, force the server to compile it first. ;-) Do not open the file from filesystem, use the ULR (http://server/flash_frames.php?...). For this fopen() wrappers have to be enabled.

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Nice to hear that! If you expect heavy traffic on the site using that script you might want try to save some DNS and http connection overhead by stating the url with http://localhost/ and so on. Given that the server's OS is unix based, it may also work to execute the php-script like a shell

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
You've got a point about that. Try ?php echo file_get_contents(http://localhost/path/to/webdir;); ? First ... If you see your own webpage it's okay, else don't mess with it. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 2:51 AM To: Jan Reiter

RE: [PHP] Problem with getting time in EST

2007-08-04 Thread Jan Reiter
Hi! Try setting the timezone to one of the cities inside it from this list: http://www.php.net/manual/en/timezones.america.php DST will be taken into account automatically. Hope that helps. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Problem with getting time in EST

2007-08-04 Thread Jan Reiter
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Saturday, August 04, 2007 5:02 PM To: Jan Reiter; 'Crab Hunt'; php-general@lists.php.net Subject: RE: [PHP] Problem with getting time in EST Jan: That's the problem, it doesn't work. I have mine set for Detroit and it's an hour off

RE: [PHP] Creating watermarks

2007-08-04 Thread Jan Reiter
Hi! Try using imagealphablending() to blend your logo onto the original image. This function should not require the user browser to be capable of blending functions as would using the alpha channel of a png inmage or such ... Jan -Original Message- From: Tom Ray [Lists] [mailto:[EMAIL

RE: [PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Jan Reiter
Hi! I'm not quite sure what you are trying to do ... Why do you use output buffering in your code, when you turn it off in the htaccess directive?? php_flag output_buffering Off The code worked for me. But I tested it without your htaccess settings ... Jan -Ursprüngliche Nachricht-

RE: [PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Jan Reiter
Right! With zlib compression ob_start() or similar seems to get called before the user script execution. I'm not quite sure why. Anyhow ob_get_level() returns 2 after the ob_start() is called for the first time in the script. You can avoid the error with while (ob_get_level() 1) {