php-general Digest 17 Apr 2013 17:47:10 -0000 Issue 8198

2013-04-17 Thread php-general-digest-help
php-general Digest 17 Apr 2013 17:47:10 - Issue 8198 Topics (messages 320861 through 320862): ldap connect issues 320861 by: Dead Letter.Office self operator within a double quoted string 320862 by: NaMarPi Administrivia: To subscribe to the digest, e-mail:

[PHP] self operator within a double quoted string

2013-04-17 Thread NaMarPi
I would like to use self and static operators inside a double quoted string, but do not find the way to accomplish that. Could you give me a right direction? http://3v4l.org/NDkdA class Foo {     public static $class_prop = 'Class_Property';     public $object_prop = 'Object_Property';    

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 7:47 PM, NaMarPi nama...@yahoo.com wrote: I would like to use self and static operators inside a double quoted string, but do not find the way to accomplish that. Could you give me a right direction? http://3v4l.org/NDkdA class Foo { public static

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Marco Behnke
Am 17.04.13 20:59, schrieb Matijn Woudt: On Wed, Apr 17, 2013 at 7:47 PM, NaMarPi nama...@yahoo.com wrote: I would like to use self and static operators inside a double quoted string, but do not find the way to accomplish that. Could you give me a right direction? http://3v4l.org/NDkdA

[PHP] Re: self operator within a double quoted string

2013-04-17 Thread NaMarPi
I found that double quoted strings are more elegant in some situations than single ones, and I like identical solutions for identical problems, so that's why I asked this question. But finally found a reason why use single quoted strings instead of double: because the number of generated opcodes

[PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Daevid Vincent
We do a lot with caching and storing in memecached as well as local copies so as to not hit the cache pool over the network and we have found some great tools to minimize our javascript and our css, and now we'd like to compress our HTML in these cache slabs. Anyone know of a good tool or even

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Joseph Moniz
http://php.net/manual/en/book.tidy.php - Joseph Moniz (510) 509-0775 | @josephmoniz https://twitter.com/josephmoniz | GitHubhttps://github.com/JosephMoniz | LinkedIn http://www.linkedin.com/pub/joseph-moniz/13/949/b54/ | Bloghttp://josephmoniz.github.io/ | CoderWall

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 10:19 PM, Marco Behnke ma...@behnke.biz wrote: Or use printf which is much more readable. Are you serious about this? How would printf make things more readable? Given a string with some %s %d etc in it, and then at the end you're giving the stuff that replaces them. I

Re: [PHP] Re: self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:30 PM, NaMarPi nama...@yahoo.com wrote: I found that double quoted strings are more elegant in some situations than single ones, and I like identical solutions for identical problems, so that's why I asked this question. But finally found a reason why use single

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:52 PM, Daevid Vincent dae...@daevid.com wrote: We do a lot with caching and storing in memecached as well as local copies so as to not hit the cache pool over the network and we have found some great tools to minimize our javascript and our css, and now we'd like to

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread David OBrien
On Wed, Apr 17, 2013 at 5:52 PM, Daevid Vincent dae...@daevid.com wrote: We do a lot with caching and storing in memecached as well as local copies so as to not hit the cache pool over the network and we have found some great tools to minimize our javascript and our css, and now we'd like to

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Daevid Vincent
-Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Sent: Wednesday, April 17, 2013 3:11 PM To: Daevid Vincent Cc: PHP List Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache On Wed, Apr 17, 2013 at 11:52 PM, Daevid Vincent

[PHP] ?=$var?

2013-04-17 Thread Larry Martell
Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the app uses this construct all over the place when building links: ?=$var? I never could find any documentation for this, but I assumed it was some conditional thing - use $var if it's defined, otherwise use nothing. In

Re: [PHP] ?=$var?

2013-04-17 Thread Micky Hulse
It should still work. You might need to turn on the short tag option in your conf file. http://stackoverflow.com/a/2185331/922323 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ?=$var?

2013-04-17 Thread Micky Hulse
On Wed, Apr 17, 2013 at 3:59 PM, Micky Hulse rgmi...@gmail.com wrote: You might need to turn on the short tag option in your conf file. Sorry, ini file, not conf. Been a long day. :D I guess I should have asked if short tags are turned on for your 5.3.3? -- PHP General Mailing List

RE: [PHP] ?=$var?

2013-04-17 Thread Daevid Vincent
It is the equivalent of ?php echo $var; ? it's just easier to type and read IMHO. For a while people were freaking out that they thought it would be deprecated, but that is not (nor ever will be) the case. -Original Message- From: Larry Martell [mailto:larry.mart...@gmail.com] Sent:

Re: [PHP] ?=$var?

2013-04-17 Thread Micky Hulse
Ah, I see now. Sorry, I must have read the original question wrong. There's a good thread on stack about short tags: Are PHP short tags acceptable to use? http://stackoverflow.com/questions/200640/are-php-short-tags-acceptable-to-use Which kinda links to the docs: PHP tags