[PHP] Session question

2011-05-17 Thread Paul Halliday
Is it OK to have session_start as an include? I have something like this: // Session init session_start(); function sKill() { session_destroy(); session_unset(); header (Location: login.php); exit(); } function sInt() { header (Location: login.php); exit(); } if

Re: [PHP] Session question

2011-05-17 Thread Per Jessen
Paul Halliday wrote: Is it OK to have session_start as an include? Yes. -- Per Jessen, Zürich (18.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Singapore Citizen Mr. Teo En Ming (Zhang Enming)
16 May 2011 Monday 7:28 P.M. Singapore Time For Immediate Release SINGAPORE, SINGAPORE - Singapore Citizen Mr. Teo En Ming (Zhang Enming) would like to report first hand account of mind intrusion and mind reading. I have been hearing voices for quite some time now but I have not been able to

[PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Singapore Citizen Mr. Teo En Ming (Zhang Enming)
16 May 2011 Monday 7:28 P.M. Singapore Time For Immediate Release SINGAPORE, SINGAPORE - Singapore Citizen Mr. Teo En Ming (Zhang Enming) would like to report first hand account of mind intrusion and mind reading. I have been hearing voices for quite some time now but I have not been able to

Re: [PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Richard Quadling
On 17 May 2011 12:45, Singapore Citizen Mr. Teo En Ming (Zhang Enming) singapore.citizen.teo.en.m...@gmail.com wrote: 16 May 2011 Monday 7:28 P.M. Singapore Time For Immediate Release SINGAPORE, SINGAPORE - Singapore Citizen Mr. Teo En Ming (Zhang Enming) would like to report first hand

Re: [PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread David Robley
Richard Quadling wrote: On 17 May 2011 12:45, Singapore Citizen Mr. Teo En Ming (Zhang Enming) singapore.citizen.teo.en.m...@gmail.com wrote: 16 May 2011 Monday 7:28 P.M. Singapore Time For Immediate Release SNIP unmitigated crap Is it Friday? Clearly it is Friday on the planet

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Daniel Brown
On Mon, May 16, 2011 at 18:46, Richard Quadling rquadl...@gmail.com wrote: 2.7.2? I'm guessing 5.7.2. Then you're guessing wrong, sir. There was no 2.7.2, and it's highly unlikely there would ever be a 5.7.2 either. Closest I can guess is Apache httpd 2.2.7, or perhaps some other

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Richard Quadling
On 17 May 2011 15:29, Daniel Brown danbr...@php.net wrote: On Mon, May 16, 2011 at 18:46, Richard Quadling rquadl...@gmail.com wrote: 2.7.2? I'm guessing 5.7.2.    Then you're guessing wrong, sir.  There was no 2.7.2, and it's highly unlikely there would ever be a 5.7.2 either.    Closest

[PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Eli Orr (Office)
Hi, I'm trying to enable a whole Email as UTF-8 - The Body is OK but the Subject remains ANSI - Please help $headers = From:$from. \r\n . Reply-To:$from . \r\n . *Content-type:text/html;charset=utf-8;*.\r\n . X-Mailer: PHP/.phpversion(); --

Re: [PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread tedd
At 1:19 PM +0100 5/17/11, Richard Quadling wrote: On 17 May 2011 12:45, Singapore Citizen Mr. Teo En Ming (Zhang Enming) -snip- Please remember what Singapore Citizen Mr. Teo En Ming (Zhang Enming) have said. Mark my words. You will know the truth in future. It is no longer a conspiracy

Re: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Bálint Horváth
Hi, For the subject you can use sg. like this: ?php function mail_utf8($to, $subject = '(No subject)', $message = '', $header = '') { $header_ = 'MIME-Version: 1.0' . \r\n . 'Content-type: text/plain; charset=UTF-8' . \r\n; mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message,

[PHP] Bitwise AND for 31-st bit

2011-05-17 Thread Vitalii Demianets
Hello, all! I've encountered odd behavior of PHP regarding bitwise AND operation when dealing with 31-st bit, and kindly ask to give me some pointers. Consider the following snippet: $tst1 = (1 31); $tst2 = 0x8000; $tst1_eq = $tst1 0x8000; $tst2_eq = $tst2 0x8000; print

Re: [PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Peter Lind
On May 17, 2011 5:05 PM, tedd tedd.sperl...@gmail.com wrote: At 1:19 PM +0100 5/17/11, Richard Quadling wrote: On 17 May 2011 12:45, Singapore Citizen Mr. Teo En Ming (Zhang Enming) -snip- Please remember what Singapore Citizen Mr. Teo En Ming (Zhang Enming) have said. Mark my words.

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Peter Lind
On May 17, 2011 4:32 PM, Daniel Brown danbr...@php.net wrote: On Mon, May 16, 2011 at 18:46, Richard Quadling rquadl...@gmail.com wrote: 2.7.2? I'm guessing 5.7.2. Then you're guessing wrong, sir. There was no 2.7.2, and it's highly unlikely there would ever be a 5.7.2 either.

Re: [PHP] Bitwise AND for 31-st bit

2011-05-17 Thread Bálint Horváth
Hi, Hmm.. interesting... tst1=-2147483648, tst1_eq=-2147483648, tst1_type=integer tst2=2147483648, tst2_eq=-2147483648, tst2_type=double at me... PHP Version 5.3.3-1ubuntu9.5 (Apache 2.0 - i686) Valentine On Tue, May 17, 2011 at 5:19 PM, Vitalii Demianets vi...@nppfactor.kiev.uawrote: Hello,

Re: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Andre Polykanine
Hello Eli, I'm using this code: private function HeaderEncode ($str) { // For the compatibility with PHP versions lower than 5.3.0 if (!function_exists ('quoted_printable_encode')) { function quoted_printable_encode ($str) { $res=str_replace (+, _, str_replace (%, =, urlencode($str)));

Re: [PHP] Bitwise AND for 31-st bit

2011-05-17 Thread Vitalii Demianets
On Tuesday 17 May 2011 18:31:00 Bálint Horváth wrote: Hi, Hmm.. interesting... tst1=-2147483648, tst1_eq=-2147483648, tst1_type=integer tst2=2147483648, tst2_eq=-2147483648, tst2_type=double at me... PHP Version 5.3.3-1ubuntu9.5 (Apache 2.0 - i686) That is what I expected too. There are 2

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Tony Mak
Thanks for your replys. Of course PHP 2.7.2 was a careless mistake, i meant PHP 5.2.7, to underline i'm not able to use those neat namespace features in PHP 5.3. Let me provide you with more details. As already mentioned cron.php should include at least two other php-scripts because

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Richard Quadling
On 17 May 2011 17:04, Tony Mak duranis2...@hotmail.com wrote: Thanks for your replys. Of course PHP 2.7.2 was a careless mistake, i meant PHP 5.2.7, to underline i'm not able to use those neat namespace features in PHP 5.3. Let me provide you with more details. As already mentioned

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Stuart Dallas
On Tue, May 17, 2011 at 5:40 PM, Richard Quadling rquadl...@gmail.comwrote: On 17 May 2011 17:04, Tony Mak duranis2...@hotmail.com wrote: Thanks for your replys. Of course PHP 2.7.2 was a careless mistake, i meant PHP 5.2.7, to underline i'm not able to use those neat namespace features

[PHP] Re: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Michelle Konzack
Hmmm, this is now the 68th mailinglist (out of 137 where I am subscribed) which he has spamed! Is this not longer subscriber only? Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet

Re: [PHP] Re: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Daniel Brown
On Tue, May 17, 2011 at 13:11, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hmmm, this is now the 68th mailinglist (out of 137 where I am subscribed) which he has spamed! Is this not longer subscriber only? Actually, it never has been. It's subscription to receive, but open to

[PHP] NOMAIL option for the list? [WAS: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Michelle Konzack
Hello Daniel Brown, Am 2011-05-17 13:15:50, hacktest Du folgendes herunter: On Tue, May 17, 2011 at 13:11, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Is this not longer subscriber only? Actually, it never has been. It's subscription to receive, but open to the public for

Re: [PHP] Bitwise AND for 31-st bit

2011-05-17 Thread David Harkness
It appears that PHP is truncating the constant 0x8000 to be within MIN_INT and MAX_INT instead of as a bit field, but when shifting 1 31 it doesn't do apply any constraints. That's pretty typical of bit-manipulation: it will merrily slide 1 bits off either end. This explains why produces 0

Re: [PHP] NOMAIL option for the list? [WAS: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Read

2011-05-17 Thread Daniel Brown
On Tue, May 17, 2011 at 15:00, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Ist there a way to set my account to NOMAIL option? To stop receiving emails you mean? As in unsubscribing? -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General

Re: [PHP] NOMAIL option for the list? [WAS: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Read

2011-05-17 Thread Ashley Sheridan
On Tue, 2011-05-17 at 15:07 -0400, Daniel Brown wrote: On Tue, May 17, 2011 at 15:00, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Ist there a way to set my account to NOMAIL option? To stop receiving emails you mean? As in unsubscribing? -- /Daniel P. Brown Network

Re: [PHP] Re: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Richard Quadling
On 17 May 2011 18:15, Daniel Brown danbr...@php.net wrote: On Tue, May 17, 2011 at 13:11, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hmmm, this is now the 68th mailinglist (out of 137 where I am subscribed) which he has spamed! Is this not longer subscriber only?    Actually,

RE: [PHP] Re: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread HallMarc Websites
On 17 May 2011 18:15, Daniel Brown danbr...@php.net wrote: On Tue, May 17, 2011 at 13:11, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hmmm, this is now the 68th mailinglist (out of 137 where I am subscribed) which he has spamed! My concern is with the admission of belonging

[PHP] Explode Question

2011-05-17 Thread admin
I need to explode an array with an array. $one = array(0 ='golf', 1 = 'field'); $two = array(0 = On the golf course or in the field of clover); $array_exp = explode($one, $two); print_r('pre'); print_r($array_exp); print_r('/pre'); Notice: Array to string conversion. I have done this before

Re: [PHP] Re: An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Daniel Brown
On Tue, May 17, 2011 at 18:51, HallMarc Websites m...@hallmarcwebsites.com wrote: My concern is with the admission of belonging to 137 mailing lists! Where do you find the time? Actually, I just looked, and I am subscribed to 114 lists, and that's after a mass-unsubscription of all but one

Re: [PHP] Explode Question

2011-05-17 Thread Marc Guay
$one = array(0 ='golf', 1 = 'field'); $two = array(0 = On the golf course or in the field of clover); $array_exp = explode($one, $two); What's the desired result? array('golf' = On the golf course or in the field of clover, 'field' = On the golf course or in the field of clover)); ? Marc

RE: [PHP] Explode Question

2011-05-17 Thread admin
The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure the delimiter can be an array in the Explode function. Richard L. Buskirk -Original Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent:

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure the delimiter can be an array in the Explode function. Richard L. Buskirk -Original

[PHP] Friday Preview

2011-05-17 Thread Daniel Brown
Hey, folks; To try to boost a bit of creative thinking and increase list traffic a bit, let's reach back into the past this Friday and bring back an oldie-but-goodie: PHP Brainteasers The old-heads on the list may remember how, a few years ago, we had a rather long group of

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure the delimiter can be an array in the Explode function. Richard L. Buskirk -Original

RE: [PHP] Explode Question

2011-05-17 Thread admin
That is exactly it. Thanks James I knew it was simple just forgot how it was done. Richard L. Buskirk -Original Message- From: James Yerge [mailto:ja...@nixsecurity.org] Sent: Tuesday, May 17, 2011 8:51 PM To: ad...@buskirkgraphics.com Cc: 'Marc Guay'; php-general@lists.php.net

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 09:09 PM, ad...@buskirkgraphics.com wrote: That is exactly it. Thanks James I knew it was simple just forgot how it was done. Richard L. Buskirk -Original Message- From: James Yerge [mailto:ja...@nixsecurity.org] Sent: Tuesday, May 17, 2011 8:51 PM To:

Re: [PHP] Friday Preview

2011-05-17 Thread Mike Mackintosh
Great Idea, and I cant wait! On May 17, 2011, at 8:28 PM, Daniel Brown wrote: Hey, folks; To try to boost a bit of creative thinking and increase list traffic a bit, let's reach back into the past this Friday and bring back an oldie-but-goodie: PHP Brainteasers The

RE: [PHP] Session question

2011-05-17 Thread Ross Hansen
Unless your adding more code to your included file it isn't worth having it as an include as there is more typing/text involved. For management purposes also it would also look ugly if you were just having one file purely for session_start(); From: p...@computer.org Date: Tue, 17 May 2011

RE: [PHP] Session question

2011-05-17 Thread admin
You can have a session start in an htaccess file. .htaccess php_value session.auto_start 1 Do not scream at me if you do not like this approach or it does not work for you. I use it and it works well for me. Simply a suggestion. Richard L. Buskirk -Original Message- From: Ross