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

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

Re: [PHP] Seemingly incorrect strict standard.

2013-06-04 Thread Richard Quadling
On 3 June 2013 20:37, shiplu shiplu@gmail.com wrote: Show a short reproducible code. Short-ish ... ?php abstract class baseClass { static public function generateLocalisedContent($s_Stuff){ throw new Exception('Must implement static public function ' . get_called_class() .

Re: [PHP] Seemingly incorrect strict standard.

2013-06-04 Thread Richard Quadling
On 4 June 2013 09:57, Richard Quadling rquadl...@gmail.com wrote: On 3 June 2013 20:37, shiplu shiplu@gmail.com wrote: Show a short reproducible code. And I can now see an interface is a much simpler mechanism! ?php interface baseInterface { static public function

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread Matijn Woudt
On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling rquadl...@gmail.comwrote: 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.

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 tijn...@gmail.com wrote: On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling rquadl...@gmail.comwrote:

Re: [PHP] Seemingly incorrect strict standard.

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

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

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 tamouse.li...@gmail.com wrote: Silvio Siefke li...@silvio-siefke.de wrote: On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: Has someone a Link with Tutorials or other Information? Not

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

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 poellmann.dan...@gmail.com wrote: Well I think it depends. When the image is

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 tamouse.li...@gmail.com 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

Re: [PHP] browser rendering

2013-06-02 Thread Matijn Woudt
On Sun, Jun 2, 2013 at 3:09 PM, georg georg.chamb...@telia.com 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

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

2013-06-02 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote: Tamara Temple tamouse.li...@gmail.com writes: Csanyi Pal csanyi...@gmail.com 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

Re: [PHP] URL Rewriting

2013-06-02 Thread Tamara Temple
Daniel Brown danbr...@php.net 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] browser rendering

2013-06-02 Thread Tamara Temple
georg georg.chamb...@telia.com 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

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

2013-06-02 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote: Tamara Temple tamouse.li...@gmail.com 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

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

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 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 farzan.dal...@gmail.com: i starting to use mod rewrite but all my images or js links doest

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 jswp...@gmx.at wrote: Try to add RewriteCond %{REQUEST_FILENAME}

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 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 farzan.dal...@gmail.com wrote: i starting to use mod rewrite but all my images or js links doest work my current query string is:

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 farzan.dal...@gmail.com:thanks for answer but it doesnt work404 Not Found -

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

2013-06-01 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com 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

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:

Re: [PHP] URL Rewriting

2013-06-01 Thread Tamara Temple
Silvio Siefke li...@silvio-siefke.de 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

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

2013-06-01 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com 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,

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 tamouse.li...@gmail.com 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

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

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

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

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 12:08, shiplu shiplu@gmail.com 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

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

2013-05-31 Thread shiplu
On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas stu...@3ft9.com 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

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

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:17, shiplu shiplu@gmail.com wrote: On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas stu...@3ft9.com 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

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

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:22, Richard Quadling rquadl...@gmail.com wrote: On 31 May 2013 12:17, shiplu shiplu@gmail.com wrote: On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas stu...@3ft9.com wrote: That is not entirely correct. It must be a literal value. The expression 'a'.'b' is a

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

2013-05-31 Thread Tamara Temple
Tedd Sperling tedd.sperl...@gmail.com wrote: 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? Well, not *biblically*, but yeah, I

Re: [PHP] limit access to php page

2013-05-31 Thread Tamara Temple
Camilo Sperberg unrea...@gmail.com wrote: On 30 mei 2013, at 05:05, Paul M Foster pa...@quillandmouse.com wrote: 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

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

2013-05-31 Thread Tamara Temple
Richard Quadling rquadl...@gmail.com wrote: Hi. Both ?php 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

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 tamouse.li...@gmail.com 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?

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 n...@nath.is 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 =

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,

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 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 nwhit...@xstudiosinc.comwrote:

Re: [PHP] limit access to php page

2013-05-30 Thread Camilo Sperberg
On 30 mei 2013, at 05:05, Paul M Foster pa...@quillandmouse.com wrote: 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

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 tijn...@gmail.com 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] 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 divine.ra...@gmail.com: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

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

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

2013-05-30 Thread tamouse mailing lists
On May 30, 2013 8:10 AM, Jim Giner jim.gi...@albanyhandball.com 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

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

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 tijn...@gmail.com 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

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
On May 29, 2013, at 11:05 PM, Paul M Foster pa...@quillandmouse.com 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

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 pa...@quillandmouse.com wrote: http://sperling.com/php/authorization/log-on.php I realize this is example code. My question is, in a real application where that

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

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 stephe...@rogers.com 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

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 tamouse.li...@gmail.com wrote: On Thu, May 30, 2013 at 8:45 PM, Stephen stephe...@rogers.com 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

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 (

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

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:

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.

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

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

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

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 dae...@daevid.com 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

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 version.

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 dae...@daevid.com 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

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
Hey guys, Thanks for the input! This is pretty nice, and DOES work. I like the fact that the fields have been into an iterative array. It's a very elegant solution. However the problem with this approach is that if you load the page directly it works. But if you call the page from the index.php

Re: [PHP] iterate javascript verification

2013-05-27 Thread Ken Robinson
When you do validation of the form in the same script that shows the form, the normal way to do this is ?php if (isset($_POST['submit'])) { // // validation here // } ? This won't work if you're getting to the page via another form, since the $_POST['submit'] is set. There two ways of

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