[PHP] Re: [PHP-DEV] PHP 5.4.16 and PHP 5.3.26 released!

2013-06-06 Thread Pierre Schmitz
Am 07.06.2013 01:58, schrieb Stas Malyshev: > Hello! > > The PHP development team announces the immediate availability of PHP > 5.4.16 and PHP 5.3.26. These releases fix about 15 bugs, including > CVE-2013-2110. All users of PHP are encouraged to upgrade to PHP 5.4.16. > PHP 5.3.26 is recommended

Re: [PHP] Fwd: Wanted : Solid/documented/tests Nested Set Model class for mySQL.

2013-06-06 Thread shiplu
If you find one that you are going to use, dont forget to share it here. I'll need this on a certain phase of my current project. -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader

Re: [PHP] Seemingly incorrect strict standard.

2013-06-04 Thread Richard Quadling
On 4 June 2013 09:57, Richard Quadling wrote: > On 3 June 2013 20:37, shiplu wrote: > >> Show a short reproducible code. >> > And I can now see an interface is a much simpler mechanism! > getMessage(), PHP_EOL; } try { $o2 = new sub2('Stuffed2'); } catch(Exception $ex){ echo $ex->getMe

Re: [PHP] Seemingly incorrect strict standard.

2013-06-04 Thread Richard Quadling
On 3 June 2013 20:37, shiplu wrote: > Show a short reproducible code. > Short-ish ... getMessage(), PHP_EOL; } try { $o2 = new sub2('Stuffed2'); } catch(Exception $ex){ echo $ex->getMessage(), PHP_EOL; } ?> And I can now see an interface is a much simpler mechanism! -- Richard Quad

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread shiplu
Show a short reproducible code.

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread Richard Quadling
Aha! Don't make it abstract in my base class, but I can throw an exception (perfectly reasonable for me as the called class should implement the method). On 3 June 2013 18:36, Matijn Woudt wrote: > > On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling wrote: > >> Hi. >> >> I've got an abstract cl

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread Matijn Woudt
On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling wrote: > Hi. > > I've got an abstract class which requires one of the concrete descendants > to implement a static function. > > The base class will call it using static:: rather than self::. > > But I'm getting an error at runtime. > > Static funct

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > My ../apache2/conf.d directory is a symlink to the ../conf.d > > directory. This might indeed be the problem. > > Yes. > My system was Debian Squeeze and I just upgraded it to Debian > Wheezy. Some configuration files and directories remains from Squ

Re: [PHP] browser rendering

2013-06-02 Thread Tamara Temple
georg wrote: > Possibly this issue is for other fora, which you might direct me, anyways; It's actually an HTML question. But most PHPers do a lot of HTML, too, it turns. out. :) > I have been dablling making my own little webpages, however having > gotten a nice > result jon fireforx, I realize

Re: [PHP] URL Rewriting

2013-06-02 Thread Tamara Temple
Daniel Brown wrote: > Studying archaeology now, Tam? ;-P Always been a huge fan. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > Csanyi Pal wrote: > >> It is interesting.. that when I switch to English language for > >> Moodle installation ( on the web interface ), then I get not this > >> error, but if I switch back to Hungarian language for installation, I > >> get it again.

Re: [PHP] browser rendering

2013-06-02 Thread Matijn Woudt
On Sun, Jun 2, 2013 at 3:09 PM, georg wrote: > Possibly this issue is for other fora, which you might direct me, anyways; > > I have been dablling making my own little webpages, however having gotten > a nice > result jon fireforx, I realize picture sizes gets treated very differntly > on differe

Re: [PHP] sorry for the blast from the past

2013-06-02 Thread Daniel Brown
On Sat, Jun 1, 2013 at 9:02 PM, Tamara Temple wrote: > > > Sorry for replying to a message from 2011 -- for some reason I had a > whole bunch of PHP messages suddenly show up in my inbox from the > past. I generally don't check the year of an unread message in my inbox, > as I try to keep inbox-ze

Re: [PHP] browser rendering

2013-06-02 Thread Ashley Sheridan
Width and height parameters on an image aren't required in HTML, it's preferred to use CSS. If different browsers are displaying the image at different sizes I'd look at the browser zoom level maybe. "Daniel Pöllmann" wrote: >Well I think it depends. >When the image is part of the website, lik

Re: [PHP] browser rendering

2013-06-02 Thread Daniel Pöllmann
Well I think it depends. When the image is part of the website, like a chart or something like that you can use the height and width attribute inside the img tag (don't forget alt for correct validation). When the image is part of the layout or you're having multiple images like in a gallery with t

Re: [PHP] URL Rewriting

2013-06-02 Thread Daniel Brown
Studying archaeology now, Tam? ;-P On Sat, Jun 1, 2013 at 8:22 PM, Tamara Temple wrote: > Silvio Siefke wrote: >> On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: >> > > Has someone a Link with Tutorials or other Information? >> > >> > Not entirely sure what you're asking here

Re: [PHP] browser rendering

2013-06-02 Thread Stephen
On 13-06-02 09:09 AM, georg wrote: Possibly this issue is for other fora, which you might direct me, anyways; I have been dablling making my own little webpages, however having gotten a nice result jon fireforx, I realize picture sizes gets treated very differntly on different browsers !!! so

Re: [PHP] REQUEST

2013-06-01 Thread musicdev
On Wed, May 29, 2013 at 12:26 PM, 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 > S

Re: [PHP] sorry for the blast from the past

2013-06-01 Thread Daniel
On Sun, Jun 2, 2013 at 11:02 AM, Tamara Temple wrote: > > > Sorry for replying to a message from 2011 -- for some reason I had a > whole bunch of PHP messages suddenly show up in my inbox from the > past. I generally don't check the year of an unread message in my inbox, > as I try to keep inbox-z

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > It is interesting.. that when I switch to English language for > Moodle installation ( on the web interface ), then I get not this error, > but if I switch back to Hungarian language for installation, I get it > again. I am completely unfamiliar with Moodle, have no idea what

Re: [PHP] URL Rewriting

2013-06-01 Thread Tamara Temple
Silvio Siefke wrote: > On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: > > > Has someone a Link with Tutorials or other Information? > > > > Not entirely sure what you're asking here, or how you (or the > > nginx folks) expect it to relate to PHP. Do you mean that you want to > > u

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Tamara Temple
Farzan, I don't have a direct answer to your question, but I work a lot with a wiki application called PmWiki that does something very similar to what you are doing. Their instructions for using "clean urls" such as http://example.com/blog/2 (only in their syntax) can be seen here: http://www.p

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. All good. > I have in > /etc/php5/mods-available/curl.ini > ; configuration for php CURL module > ; priority=20 > extension=curl.so Have you enabled the extension as well

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Julian Wanke
localhost means the files are stored on your computer so I can't access them ;)Wait, you are trying to change the image directories? I'm a bit confused.Am 01.06.2013, 22:44 Uhr, schrieb Farzan Dalaee :thanks for answer but it doesnt work404 Not Found - http://localhost/framework/blog/files/upload/

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Adam Szewczyk
This is more of an apache question. You can try below url. http://lmgtfy.com/?q=mod_rewrite+exclude+css On 1 June 2013 21:39, Farzan Dalaee wrote: > i starting to use mod rewrite but all my images or js links doest work > my current query string is: > index.php?r=blog&page=2 > i want to change

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: > Hi, > > I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP > extension: I can't enable it. > > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. > > I have in

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Farzan Dalaee
thanks for answer but it doesnt work 404 Not Found - http://localhost/framework/blog/files/upload/images/ but my images folder in: http://localhost/framework/files/upload/images/ On Sun, Jun 2, 2013 at 1:11 AM, Julian Wanke wrote: > Try to add > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteC

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Julian Wanke
Try to add RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d that should exclude existing files and directories from rewriting... Am 01.06.2013, 22:39 Uhr, schrieb Farzan Dalaee : i starting to use mod rewrite but all my images or js links doest work my current query stri

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: > Hi, > > I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP > extension: I can't enable it. > > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. > > I have in

Re: [PHP] REQUEST

2013-06-01 Thread Last Hacker Always onpoint
very funny how big a novice i can be. On Wed, May 29, 2013 at 1:48 PM, 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 QU

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread David Harkness
Thanks Nathaniel for the clarification about 5.4. We are still on 5.3 (and that only recently), so 5.4 is a ways off in our production systems. However, I'll read up on this since it may be useful in offline tools. On Fri, May 31, 2013 at 11:52 AM, Nick Whiting wrote: > TestClass::testMethod(func

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread Nick Whiting
This will not work. As stated in the PHP documentation "Static closures cannot have any bound object " A static Closure has no context of "this" just as with any other static object. A workaround is to pass in the Closure as a parameter to achieve a similar result. class TestClass { public

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread Nathaniel Higgins
I'm talking about PHP 5.4. `bindTo` is a Closure method in PHP 5.4, and allows you to set the `$this` variable inside of a Closure. However, apparently you can't use it on Closures created inside static methods. I knew that you could create another function which would return the Closure, however,

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread David Harkness
On Fri, May 31, 2013 at 10:54 AM, Nathaniel Higgins wrote: > Is it possible to bind an instance to a static closure, or to create a > non-static closure inside of a static class method? > PHP doesn't have a method to do this. In JavaScript you can use jQuery's var func = $.proxy(function ()

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-31 Thread dealTek
On May 30, 2013, at 7:30 PM, tamouse mailing lists wrote: > Sounds like the OP is asking for a pre-built CRUD interface that > adapts to his tables and their relationships. It's a fair question, > just one I don't have an answer to. There must be some kind of ORM for > PHP? Thanks tamouse -

Re: [PHP] Has this always been the case?

2013-05-31 Thread Tamara Temple
Richard Quadling wrote: > Hi. > > Both > > class Oddity{ > public $var = 'a' . 'b'; > } > ?> > >From http://www.php.net/manual/en/language.oop5.properties.php: "This declaration may include an initialization, but this initialization must be a constant value--that is, it must be able to be

Re: [PHP] limit access to php page

2013-05-31 Thread Tamara Temple
Camilo Sperberg wrote: > 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 in

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

2013-05-31 Thread Tamara Temple
Tedd Sperling wrote: > 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? Well, not *biblically*, but yeah, I do. -- PHP General Mailing List

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:22, Richard Quadling wrote: > On 31 May 2013 12:17, shiplu wrote: > >> On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas wrote: >>> That is not entirely correct. It must be a literal value. The expression >>> 'a'.'b' is a constant value. >>> I may be being overly picky here

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:17, shiplu wrote: > On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas wrote: >> That is not entirely correct. It must be a literal value. The expression >> 'a'.'b' is a constant value. >> I may be being overly picky here, but I think it's an important distinction. >> > > I

Re: [PHP] Has this always been the case?

2013-05-31 Thread shiplu
On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas wrote: > That is not entirely correct. It must be a literal value. The expression > 'a'.'b' is a constant value. > I may be being overly picky here, but I think it's an important distinction. > I thought 'a'. 'b' is a constant expression and 'ab' is

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:08, shiplu wrote: > The property initializer in PHP can not have any expression. It should be > constant value. That is not entirely correct. It must be a literal value. The expression 'a'.'b' is a constant value. I may be being overly picky here, but I think it's an imp

Re: [PHP] Has this always been the case?

2013-05-31 Thread shiplu
Yes, this has been always the case. The property initializer in PHP can not have any expression. It should be constant value. If you want to use expression here use the constructor. class MyClass{ protected $nonStaticField; static protected $staticField; public function __construct(){

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 11:57, Richard Quadling wrote: > Hi. > > Both > > class Oddity{ > public $var = 'a' . 'b'; > } > ?> > > and > > class Oddity{ > const A_VAR = 'a' . 'b'; > } > ?> > > produce ... > > PHP Parse error: syntax error, unexpected '.', expecting ',' or ';' in - > on line 3 >

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread Bastien
Bastien Koert On 2013-05-30, at 10:30 PM, tamouse mailing lists wrote: > On Thu, May 30, 2013 at 8:45 PM, Stephen wrote: >> On 13-05-30 09:36 PM, dealTek wrote: >>> >>> Hi all, Thanks for your help... >>> >>> I'm looking for a very good, pre made, working PDO and/or mysqli database >>> cla

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread tamouse mailing lists
On Thu, May 30, 2013 at 8:45 PM, Stephen wrote: > On 13-05-30 09:36 PM, dealTek wrote: >> >> Hi all, Thanks for your help... >> >> I'm looking for a very good, pre made, working PDO and/or mysqli database >> class (in a wrapper) - to get started with, that has all the basic needs >> like UPDATE -

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread Stephen
On 13-05-30 09:36 PM, dealTek wrote: Hi all, Thanks for your help... I'm looking for a very good, pre made, working PDO and/or mysqli database class (in a wrapper) - to get started with, that has all the basic needs like UPDATE - INSERT - DELETE - QUERY etc. That would be very helpful. I'm als

Re: [PHP] limit access to php page

2013-05-30 Thread Paul M Foster
On Thu, May 30, 2013 at 12:06:02PM -0400, Tedd Sperling wrote: > On May 29, 2013, at 11:05 PM, Paul M Foster > wrote: > >> http://sperling.com/php/authorization/log-on.php > > > > I realize this is example code. > > > > My question is, in a real application where that $_SESSION['auth'] > > toke

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
On May 29, 2013, at 11:05 PM, Paul M Foster wrote: >> http://sperling.com/php/authorization/log-on.php > > I realize this is example code. > > My question is, in a real application where that $_SESSION['auth'] token > would be used subsequently to gain entry to other pages, what would you > use

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

2013-05-30 Thread David Harkness
On Wed, May 29, 2013 at 10:20 AM, Matijn Woudt wrote: > It is possible to write a whole parser as a single regex, being it terribly > long and complex. > While regular expressions are often used in the lexer--the part that scans the input stream and breaks it up into meaningful tokens like

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

2013-05-30 Thread Jim Giner
On 5/30/2013 10:22 AM, tamouse mailing lists wrote: So - the include method still works, as would the single script 'controller' method. Within a php script any file is accessible (within your domain at least) and may therefore be included and execute. I want to throw in a caveat here, and th

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

2013-05-30 Thread tamouse mailing lists
On May 30, 2013 8:10 AM, "Jim Giner" wrote: > > On 5/29/2013 9:38 PM, tamouse mailing lists wrote: > >> >> Okay, first off, your application *has* to have some entry point that >> *is* accessible to a browser; otherwise nothing will find it. >> > > Once again - I was wrong in my suggestion as Ashl

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

2013-05-30 Thread Jim Giner
On 5/29/2013 9:38 PM, tamouse mailing lists wrote: Okay, first off, your application *has* to have some entry point that *is* accessible to a browser; otherwise nothing will find it. Once again - I was wrong in my suggestion as Ashley has pointed out so correctly. Had to test it out this m

Re: [PHP] Include/Require limit?

2013-05-30 Thread Julian Wanke
Hi,it outputs a corrupt image (I think the function imagepng)Am 30.05.2013, 11:17 Uhr, schrieb Alex Pojarsky :Hey.Afaik - only in case if your PHP process instance exeeds allowed memory limit.Other then this - explain how does it fail exactly. Any error messages? Errorous behavior? On Thu, May 30,

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

2013-05-30 Thread Sebastian Krebs
2013/5/29 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, Daev

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

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

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:

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

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

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

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

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

2013-05-28 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 ( http://

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

2013-05-28 Thread David Harkness
Hi Daevid, On Tue, May 28, 2013 at 2:40 PM, Daevid Vincent wrote: > I appreciate the pointer, but our files, like many people, is a mixture of > HTML, PHP and JS in one file. This jsmin appears to only work on .js files > right? Also, everything else works great in our minifing method, just this

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

2013-05-28 Thread Daevid Vincent
> From: David Harkness [mailto:davi...@highgearmedia.com] > > We have been using a native jsmin extension [1] which does a lot more > without any trouble for over two years now. It's much faster than the > equivalent PHP solution and is probably tested by a lot more people than a > home-grown vers

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

2013-05-28 Thread David Harkness
Hi Daevid, On Tue, May 28, 2013 at 2:17 PM, Daevid Vincent wrote: > I'm adding some minification to our cache.class.php . . . We have been using a native jsmin extension [1] which does a lot more without any trouble for over two years now. It's much faster than the equivalent PHP solution and

Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 Al > I'm trying to increase the connection timeout; but can't get it to work. > Note: Keep-Alive gets repeated. > > I'm using: > header("Connection: Keep-Alive"); > header("Keep-Alive: timeout=9, max=100"); > Set the second optional argument to "true" See http://de.php.net/manual/en/fu

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
Sounds good! Thanks Ken. Very clear now. Tim Sent from my iPhone On May 27, 2013, at 1:57 PM, Ken Robinson wrote: > When you do validation of the form in the same script that shows the form, > the normal way to do this is > >if (isset($_POST['submit'])) { > // > // validation here > //

<    3   4   5   6   7   8   9   10   11   12   >