Re: [PHP] limit access to php page

2013-05-29 Thread Camilo Sperberg
On 30 mei 2013, at 05:05, Paul M Foster wrote: > On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: > >> On May 29, 2013, at 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

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 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 t

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 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 fo

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 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 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 reques

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 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 redirect

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 (red

[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 so

Re: [PHP] limit access to php page

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 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). > > Everyt

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 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). > > Ever

[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 red

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 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 General Mailing List (htt

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
On Wed, May 29, 2013 at 8:09 PM, Jim Giner wrote: > 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

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 /var/log/http

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 G

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, visit:

Re: [PHP] REQUEST

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 8:56 PM, Stuart Dallas 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] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Ashley Sheridan
Matijn Woudt wrote: >On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs >wrote: > >> >> >> >> 2013/5/29 Matijn Woudt >> >>> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >>> >wrote: >>> >>> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >>> > > On Tue, 28 May 2013 14:17:06 -0700, Daevid V

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, visi

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 wrote: > > > > 2013/5/29 Matijn Woudt > >> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade > >wrote: >> >> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >> > > On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: >> > >> I'm adding some

Re: [PHP] REQUEST

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 2:56 PM, Stuart Dallas 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 > tend not to jud

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 > On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >wrote: > > > On Wed, May 29, 2013 at 9:57 AM, Jonesy 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 > > >> e

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 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 of q

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: >

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 18:16, Jim Giner 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, Last Hacker Always

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 17:26, Last Hacker Always onpoint 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 A LITTLE HARD FO

[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

[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

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 wrote: > > Good morning all: > > I have recently purchased a computer and am using it as a dedicated server. > A friend helped me i

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 wrote: > > > > On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade > 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 that would work, fo

[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 receiv

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 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 that would work, for example in > > javascript you could to the following: > > var http = 5;

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 sc

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 no

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 wrote: > On Wed, May 29, 2013 at 9:57 AM, Jonesy 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. > >> >

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 wrote: A SIMPLE MACHINE FUNCTION, IS A FORUM SITE S

Re: [PHP] REQUEST

2013-05-29 Thread Bastien
Bastien Koert On 2013-05-29, at 12:30 PM, Stuart Dallas wrote: > On 29 May 2013, at 17:26, Last Hacker Always onpoint > 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

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 wrote: > A SIMPLE MACHINE FUNCTION, IS A FORUM SITE SCRIPT FROM THE SIMPLE MACHINE > COMPANY BUT

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 wrote: > On Wed, May 29, 2013 at 9:30 AM, Stuart Dallas wrote: > >> On 29 May 2013, at 17:26, Last Hacker Always onpoint < >> lasthack...@gmail

Re: [PHP] REQUEST

2013-05-29 Thread Tommy Pham
On Wed, May 29, 2013 at 9:30 AM, Stuart Dallas 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 AN

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
On 29 May 2013, at 17:26, Last Hacker Always onpoint 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 A LITTLE HARD FO

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 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 don't wan

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Daniel Brown
On Wed, May 29, 2013 at 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 comp

[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, strai

[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. However

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Andrew Ballard
On May 29, 2013 8:04 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

[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,