php-general Digest 29 May 2013 12:03:48 -0000 Issue 8250

2013-05-29 Thread php-general-digest-help
php-general Digest 29 May 2013 12:03:48 - Issue 8250 Topics (messages 321222 through 321226): Re: need some regex help to strip out // comments but not http:// urls 321222 by: David Harkness 321223 by: Daevid Vincent 321224 by: David Harkness 321225 by:

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Andreas Perstinger
On 28.05.2013 23:17, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is causing me grief. I want to remove all comments of the // variety, HOWEVER I don't want to remove URLs... You need a negative look behind assertion (

[PHP] Webpage Persistence Load balancing

2013-05-29 Thread Al
I'm having a webpage Persistence problem, it is intermittent. I suspect it is caused by load-balancing. Specifically: Users are connected to a webpage form to complete. Generally, everything is OK if they take a minute or even more to complete the form. However, sometimes they report to me,

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Andrew Ballard
On May 29, 2013 8:04 AM, Al n...@ridersite.org wrote: I'm having a webpage Persistence problem, it is intermittent. I suspect it is caused by load-balancing. Specifically: Users are connected to a webpage form to complete. Generally, everything is OK if they take a minute or even more to

[PHP] Re: Webpage Persistence Load balancing

2013-05-29 Thread Jim Giner
On 5/29/2013 8:03 AM, Al wrote: I'm having a webpage Persistence problem, it is intermittent. I suspect it is caused by load-balancing. Specifically: Users are connected to a webpage form to complete. Generally, everything is OK if they take a minute or even more to complete the form.

[PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Jonesy
On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is causing me grief. I want to remove all comments of the // variety, HOWEVER I don't want to remove URLs... KISS. To make it simple,

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Daniel Brown
On Wed, May 29, 2013 at 8:03 AM, Al n...@ridersite.org wrote: I'm having a webpage Persistence problem, it is intermittent. I suspect it is caused by load-balancing. Specifically: Users are connected to a webpage form to complete. Generally, everything is OK if they take a minute or even

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is causing me grief. I want to remove all comments of the // variety, HOWEVER I

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 17:26, Last Hacker Always onpoint lasthack...@gmail.com wrote: HEY GUYZ I KNOW, I KNOW THIS IS NOT A PLACE FOR SOMETHING LIKE THIS SO BUT HEY I HAVE A LITTLE TINY QUESTION FOR MY COOL GUYZ. DOES ANYONE HERE USE A SIMPLY MACHINE FUNCTION SCRIPT? BECAUSE THE SCRIPTINGS ARE

Re: [PHP] REQUEST

2013-05-29 Thread Tommy Pham
On Wed, May 29, 2013 at 9:30 AM, Stuart Dallas stu...@3ft9.com wrote: On 29 May 2013, at 17:26, Last Hacker Always onpoint lasthack...@gmail.com wrote: HEY GUYZ I KNOW, I KNOW THIS IS NOT A PLACE FOR SOMETHING LIKE THIS SO BUT HEY I HAVE A LITTLE TINY QUESTION FOR MY COOL GUYZ. DOES

Re: [PHP] REQUEST

2013-05-29 Thread Marc Guay
Does anyone else find it strange that the movie Troll only has 2 stars on IMDB? I think it's worth at least CAPSLOCK. On 29 May 2013 11:45, Tommy Pham tommy...@gmail.com wrote: On Wed, May 29, 2013 at 9:30 AM, Stuart Dallas stu...@3ft9.com wrote: On 29 May 2013, at 17:26, Last Hacker Always

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
Please find your caps-lock key and turn it off! Also, please include the list when replying, or expect an invoice for my consulting services. On 29 May 2013, at 17:36, Last Hacker Always onpoint lasthack...@gmail.com wrote: A SIMPLE MACHINE FUNCTION, IS A FORUM SITE SCRIPT FROM THE SIMPLE

Re: [PHP] REQUEST

2013-05-29 Thread Bastien
Bastien Koert On 2013-05-29, at 12:30 PM, Stuart Dallas stu...@3ft9.com wrote: On 29 May 2013, at 17:26, Last Hacker Always onpoint lasthack...@gmail.com wrote: HEY GUYZ I KNOW, I KNOW THIS IS NOT A PLACE FOR SOMETHING LIKE THIS SO BUT HEY I HAVE A LITTLE TINY QUESTION FOR MY COOL GUYZ.

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 12:51 PM, Stuart Dallas wrote: Please find your caps-lock key and turn it off! Also, please include the list when replying, or expect an invoice for my consulting services. On 29 May 2013, at 17:36, Last Hacker Always onpoint lasthack...@gmail.com wrote: A SIMPLE MACHINE

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.comwrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
It is possible to write a whole parser as a single regex, being it terribly long and complex. That said, there's no other simple syntax that would work, for example in javascript you could to the following: var http = 5; switch(value) { case http:// Http case here! (this whould not be

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
And after all I said - a few minutes of searching tells me that the SMF forum software (according to the simplemachines.org site itself) is written in a very familiar language - PHP. WITH a very familiar (to me) MySQL DB behind it. So apparently our erstwhile hacker can't yet recognize PHP

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade zootboys...@gmail.comwrote: It is possible to write a whole parser as a single regex, being it terribly long and complex. That said, there's no other simple syntax that would work, for example in javascript you could to the following:

[PHP] include() Error

2013-05-29 Thread Ron Piggott
Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be the reasoning behind the error I am

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 1:33 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade zootboys...@gmail.com wrote: It is possible to write a whole parser as a single regex, being it terribly long and complex. That said, there's no other simple syntax

Re: [PHP] include() Error

2013-05-29 Thread Marc Guay
Is the echo $mySQL_user; inside of a function? I believe you'll need to say global $mySQL_user; to gain access to it if so. On 29 May 2013 12:39, Ron Piggott ron.pigg...@actsministries.org wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server.

[PHP] Re: include() Error

2013-05-29 Thread Jim Giner
On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be

[PHP] Re: WOT [PHP] REQUEST

2013-05-29 Thread Jay Blanchard
[snip]We're not your dudes/guyz/bros or anything like that. [/snip] Don't taze me bro'! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 17:26, Last Hacker Always onpoint lasthack...@gmail.com wrote: HEY GUYZ I KNOW, I KNOW THIS IS NOT A PLACE FOR SOMETHING LIKE THIS SO BUT HEY I HAVE A LITTLE TINY QUESTION FOR MY COOL GUYZ. DOES ANYONE HERE USE A SIMPLY MACHINE FUNCTION SCRIPT? BECAUSE THE SCRIPTINGS ARE

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 18:16, Jim Giner jim.gi...@albanyhandball.com wrote: On 5/29/2013 12:51 PM, Stuart Dallas wrote: Please find your caps-lock key and turn it off! Also, please include the list when replying, or expect an invoice for my consulting services. On 29 May 2013, at 17:36,

RE: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Daevid Vincent
-Original Message- From: Andreas Perstinger [mailto:andiper...@gmail.com] Sent: Tuesday, May 28, 2013 11:10 PM To: php-general@lists.php.net Subject: Re: [PHP] need some regex help to strip out // comments but not http:// urls On 28.05.2013 23:17, Daevid Vincent wrote: I want

Re: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 4:26 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Sean Greenslade [mailto:zootboys...@gmail.com] Sent: Wednesday, May 29, 2013 10:28 AM Also, (I haven't tested it, but) I don't think that example you gave would work. Without any sort

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sebastian Krebs
2013/5/29 Matijn Woudt tijn...@gmail.com On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.com wrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our

Re: [PHP] REQUEST

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 2:56 PM, Stuart Dallas stu...@3ft9.com wrote: Anyone who calls themselves a hacker in a public place such as this does so with absolutely no clue what they're talking about, and that's without getting in to the hacker vs. cracker debate. However, regardless of that I

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/5/29 Matijn Woudt tijn...@gmail.com On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.com wrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 5:45 PM, Tedd Sperling wrote: PS: I think it probably best not to rise to the bait from people who forgot to turn off their cap's key. You call it bait? I call it stupidity. Once no, more than once YES. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/5/29 Matijn Woudt tijn...@gmail.com On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.com wrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy

Re: [PHP] REQUEST

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 8:56 PM, Stuart Dallas stu...@3ft9.com wrote: [On which note it has to be said he clearly isn't since he couldn't get lasthacker@ and had to settle for lasthacker1@. Just sayin'.] -Stuart I'm surprised he didn't call himself la5T hax0R alwayZ 0nP01nT :)

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 5:53 PM, Matijn Woudt wrote: I'm surprised he didn't call himself la5T hax0R alwayZ 0nP01nT :) He apparently can't find the caps key - how would he ever type that string correctly on a consistent basis? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] REQUEST

2013-05-29 Thread John Meyer
Jim Giner wrote: On 5/29/2013 5:45 PM, Tedd Sperling wrote: PS: I think it probably best not to rise to the bait from people who forgot to turn off their cap's key. You call it bait? I call it stupidity. Once no, more than once YES. Why not both? Cue cute taco shell girl. -- PHP

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
You are most probable getting a fatal error, and the way PHP is configured now, doesn't show you that publicly. Enable that setting via php.ini or directly in the script (not recommended) or check out the webserver's error_log (assuming apache and a RedHat based distro this will be on

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
On Wed, May 29, 2013 at 8:09 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 5:53 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Sometimes when all you know is regex, everything looks like a nail... Thanks, Ash There are people who *know* regrex? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP

[PHP] limit access to php page

2013-05-29 Thread Tim Dunphy
Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group (redirect.php). Everything works great so far, except if you pop the full URL of

Re: [PHP] limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 6:11 PM, Tim Dunphy bluethu...@gmail.com wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group

Re: [PHP] limit access to php page

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 7:11 PM, Tim Dunphy bluethu...@gmail.com wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group

[PHP] Re: limit access to php page

2013-05-29 Thread Jim Giner
On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group (redirect.php). Everything works great

Re: [PHP] Re: limit access to php page

2013-05-29 Thread Glob Design Info
On 5/29/13 6:14 PM, Jim Giner wrote: On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 8:14 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request

Re: [PHP] Re: limit access to php page

2013-05-29 Thread Jim Giner
On 5/29/2013 9:20 PM, Glob Design Info wrote: On 5/29/13 6:14 PM, Jim Giner wrote: On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 8:20 PM, Glob Design Info i...@globdesign.com wrote: On 5/29/13 6:14 PM, Jim Giner wrote: On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some

Re: [PHP] Re: limit access to php page

2013-05-29 Thread jomali
On Wed, May 29, 2013 at 9:20 PM, Glob Design Info i...@globdesign.comwrote: On 5/29/13 6:14 PM, Jim Giner wrote: On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some

Re: [PHP] limit access to php page

2013-05-29 Thread Paul M Foster
On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: On May 29, 2013, at 7:11 PM, Tim Dunphy bluethu...@gmail.com wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended