Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread ma...@behnke.biz
> my windowze dev box is completely frozen at startup now, before even > mounting the drive that had the slow write rate today. booted into > ubuntu which is still responsive, and ran disk utility to see that > smart status and self-check for both system drive and the other drive > that i noticed

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread rene7705
On Wed, May 23, 2012 at 10:09 AM, ma...@behnke.biz wrote: > >> my windowze dev box is completely frozen at startup now, before even >> mounting the drive that had the slow write rate today. booted into >> ubuntu which is still responsive, and ran disk utility to see that >> smart status and self-c

RE: [PHP]How to handle E_ERROR,E_PARSE with a user defined function

2012-05-23 Thread ma...@behnke.biz
> -Original Message- > From: Yuchen Wang [mailto:phob...@gmail.com] > Sent: Tuesday, May 22, 2012 10:19 PM > To: php-general Maillist > Subject: [PHP]How to handle E_ERROR,E_PARSE with a user defined function > > Hi all, > > How to handle E_ERROR,E_PARSE with a user defined function ? Are

Re: [PHP]How to handle E_ERROR,E_PARSE with a user defined function

2012-05-23 Thread Yuchen Wang
Thank you I finally found a method to process these errors that using register_shutdown_function() You can read it from this http://insomanic.me.uk/post/229851073 or http://mo47.com/blog/2012/catching-fatal-errors 2012/5/23 ma...@behnke.biz > > -Original Message- > > From: Yuchen Wan

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Maciek Sokolewicz
On 23-05-2012 06:12, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above function it is getting delivered to respective recip

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashwani Kesharwani
Hi Maciek, admin, Thanks for your responses. Its really helpful. Regards Ashwani On Wed, May 23, 2012 at 3:37 PM, Maciek Sokolewicz < maciek.sokolew...@gmail.com> wrote: > On 23-05-2012 06:12, Ashwani Kesharwani wrote: > >> Hi , >> >> I have a query w.r.t. mail() function in php. >> >> I have

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread rene7705
On Wed, May 23, 2012 at 10:17 AM, rene7705 wrote: > On Wed, May 23, 2012 at 10:09 AM, ma...@behnke.biz wrote: >> >>> my windowze dev box is completely frozen at startup now, before even >>> mounting the drive that had the slow write rate today. booted into >>> ubuntu which is still responsive, an

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread ma...@behnke.biz
rene7705 hat am 23. Mai 2012 um 13:51 geschrieben: > I think I'll leave it untouched for a few days > (http://mediabeez.ws/stats/ and 404 on http://mediabeez.ws/stats/code/libraries_rv/rajmvServiceLog-1.0.0/ajax_makeLogEntry.php?rajmvServiceLog_initialID=212.48.107.10__1337775183&project_hd_r

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread rene7705
On Wed, May 23, 2012 at 2:17 PM, ma...@behnke.biz wrote: > > > rene7705 hat am 23. Mai 2012 um 13:51 geschrieben: > >> I think I'll leave it untouched for a few days >> (http://mediabeez.ws/stats/ and > > > 404 on > http://mediabeez.ws/stats/code/libraries_rv/rajmvServiceLog-1.0.0/ajax_makeLogEnt

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread ma...@behnke.biz
rene7705 hat am 23. Mai 2012 um 14:46 geschrieben: > you're right, and i'm putting it on the top of my todo list. > > i take it you were referring to project_hd_root, or anything else as well? Yes. Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-23 Thread ma...@behnke.biz
rene7705 hat am 23. Mai 2012 um 14:55 geschrieben: > And please explain what you mean by "no log is loaded". No graph? No > $hits under "structure" tab, no $errors under same tab? As I wrote the mail to the list no tab had anything to display. Now it's working. No idea what changed. -- PHP G

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Jonesy
On Wed, 23 May 2012 00:24:25 -0400, admin wrote: > -Original Message- > From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] > Sent: Wednesday, May 23, 2012 12:13 AM > To: php-general@lists.php.net > Subject: [PHP] w.r.t. mail() function > > Hi , > > I have a query w.r.t. mail()

[PHP] Function size

2012-05-23 Thread Tedd Sperling
Hi gang: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > A rule of thumb is no more than 50 lines per > function, most much less. Back in the day when we didn't have nifty > gui screens and an 24 line terminals (yay green on black!), if a > function exceeded one printed page, it was d

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Mark Rousell
On 22/05/2012 19:15, Gates, Jeff wrote: > Can anyone tell me what differences I might encounter by working with PHP on > a Unix server verses working with PHP on a Windows server. We use Windows > production servers here but many of us would like to get more LAMP > environments. > > So, I'm won

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Mark Rousell
On 22/05/2012 19:32, Ashley Sheridan wrote: > After that, you have file permissions. In Unix, you have file, owner and > group permissions; Windows has read/write permissions and I believe on > newer versions you can get something similar to what Unix/Linux has had > for the last however many years

Re: [PHP] Function size

2012-05-23 Thread shiplu
On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > Hi gang: > > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > > A rule of thumb is no more than 50 lines per > > function, most much less. Back in the day when we didn't have nifty > > gui screens and an 24 line terminals (yay gr

Re: [PHP] Function size

2012-05-23 Thread Tedd Sperling
On May 23, 2012, at 11:49 AM, shiplu wrote: > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > When number of lines becomes the criteria of function size? Wouldn't it > depends on the task the function is doing? You missed the point. Of course, the difficulty of the task of a specif

Re: [PHP] Function size

2012-05-23 Thread Robert Cummings
On 12-05-23 12:15 PM, Tedd Sperling wrote: On May 23, 2012, at 11:49 AM, shiplu wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: When number of lines becomes the criteria of function size? Wouldn't it depends on the task the function is doing? You missed the point. Of course

[PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread jas
I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private key from a database. I then use the openssl_pkey_get_private() function to load it as a resource object and proceed to call the openssl_sign() function to obtain a digital signature of a stri

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 3:50 PM, Jonesy wrote: > On Wed, 23 May 2012 00:24:25 -0400, admin wrote: >> -Original Message- >> From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] >> Sent: Wednesday, May 23, 2012 12:13 AM >> To: php-general@lists.php.net >> Subject: [PHP] w.r.t. mail

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Matijn Woudt
On Tue, May 22, 2012 at 8:15 PM, Gates, Jeff wrote: > Can anyone tell me what differences I might encounter by working with PHP on > a Unix server verses working with PHP on a Windows server. We use Windows > production servers here but many of us would like to get more LAMP > environments. > >

Re: [PHP] Function size

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 5:49 PM, shiplu wrote: > On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > >> Hi gang: >> >> On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: >> >  A rule of thumb is no more than 50 lines per >> > function, most much less. Back in the day when we didn't hav

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 8:29 PM, jas wrote: > I have run into a problem that I am altogether unfamiliar with. > > A scenario. I retrieve a users private key from a database. > > I then use the openssl_pkey_get_private() function to load it as a resource > object and proceed to call the openssl_sig

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Jason Gerfen
On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jas wrote: I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private key from a database. I then use the openssl_pkey_get_private() function to load it as a resource objec

Re: [PHP] Function size

2012-05-23 Thread Tedd Sperling
On May 23, 2012, at 12:21 PM, Robert Cummings wrote: > On 12-05-23 12:15 PM, Tedd Sperling wrote: >> What I was talking about was that what we can grasp in one view, we can >> understand better. If the code lies outside of our view, then we understand >> it less. I can support this claim with num

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen wrote: > On 05/23/2012 01:05 PM, Matijn Woudt wrote: >> >> On Wed, May 23, 2012 at 8:29 PM, jas  wrote: >>> >>> I have run into a problem that I am altogether unfamiliar with. >>> >>> A scenario. I retrieve a users private key from a database. >>> >>>

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote: > On Wed, May 23, 2012 at 3:50 PM, Jonesy wrote: > > On Wed, 23 May 2012 00:24:25 -0400, admin wrote: > >> -Original Message- > >> From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] > >> Sent: Wednesday, May 23, 2012 12:13

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:54 +0200, Matijn Woudt wrote: > On Tue, May 22, 2012 at 8:15 PM, Gates, Jeff wrote: > > Can anyone tell me what differences I might encounter by working with PHP > > on a Unix server verses working with PHP on a Windows server. We use > > Windows production servers here

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Jason Gerfen
On 05/23/2012 01:26 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen wrote: On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jaswrote: I have run into a problem that I am altogether unfamiliar with. A scenario. I retrieve a users private k

Re: [PHP] Function size

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:59 +0200, Matijn Woudt wrote: > On Wed, May 23, 2012 at 5:49 PM, shiplu wrote: > > On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > > > >> Hi gang: > >> > >> On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > >> > A rule of thumb is no more than 50 lines

Re: [PHP] Function size

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:49 PM, Ashley Sheridan wrote: > ** > On Wed, 2012-05-23 at 20:59 +0200, Matijn Woudt wrote: > > On Wed, May 23, 2012 at 5:49 PM, shiplu wrote: > > On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > > > >> Hi gang: > >> > >> On May 21, 2012, at 8:32 PM, tamouse mail

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:33 PM, Ashley Sheridan wrote: > ** > On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote: > > On Wed, May 23, 2012 at 3:50 PM, Jonesy wrote: > > On Wed, 23 May 2012 00:24:25 -0400, admin wrote: > >> -Original Message- > >> From: Ashwani Kesharwani [mailto:ashwa

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:35 PM, Ashley Sheridan wrote: > ** > On Wed, 2012-05-23 at 20:54 +0200, Matijn Woudt wrote: > > On Tue, May 22, 2012 at 8:15 PM, Gates, Jeff wrote: > > Can anyone tell me what differences I might encounter by working with PHP > > on a Unix server verses working with PHP

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:42 PM, Jason Gerfen wrote: > On 05/23/2012 01:26 PM, Matijn Woudt wrote: >> >> On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen >>  wrote: >>> >>> On 05/23/2012 01:05 PM, Matijn Woudt wrote: On Wed, May 23, 2012 at 8:29 PM, jas    wrote: > > I have run into

Re: [PHP] Function size

2012-05-23 Thread shiplu
On Thu, May 24, 2012 at 1:56 AM, Matijn Woudt wrote: > I agree that large switch block are not always easy and useful to split, > however, writing too much code inside a switch block isn't considered good > practice too IMO. Though, it is unavoidable in some cases I think. I do > have some of the

Re: [PHP] w.r.t. mail() function

2012-05-23 Thread Jim Lucas
On 05/22/2012 09:12 PM, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above function it is getting delivered to respective re

Re: [PHP] Function size

2012-05-23 Thread Camilo Sperberg
I use a lot of switches but they are always small in size because they look mostly like this: switch($action) { case 'hello': $someObject->executeAction(); break; case 'world': $someOtherObject->executeOtherAction(); break; default: $this->anotherAction(); break; }

Re: [PHP] Function size

2012-05-23 Thread Jeremiah Dodds
Tedd Sperling writes: > It would be an interesting survey to ask programmers to review their code and > provide the average number of lines in their functions AND how many lines of > code their monitor's can display. In other words, look at your editor; count > the > number of lines your monitor