php-general Digest 13 Feb 2012 18:52:05 -0000 Issue 7687

2012-02-13 Thread php-general-digest-help
php-general Digest 13 Feb 2012 18:52:05 - Issue 7687 Topics (messages 316579 through 316586): Re: questions about $_SERVER 316579 by: Michael Save 316584 by: Stuart Dallas Re: Swiftlet is quite possibly the smallest MVC framework you'll ever use. 316580 by: Elbert F

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Simon Schick
Hi, Paul I personally pretty much like the idea of auto-loaders, but that's a personal point of view. If you have always develop with scripts having autoloaders you'll hate to write a *require_once* command at the beginning of all files. And what would a dependency-injection-container be without

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Simon Schick
Hi, Elbert I personally would remove the set_error_handler completely. This is a configuration that the administrator has to handle himself. In a development-env they want to see all errors, warnings etc, yes - even a strict_notice. But in a production-env they dont want to show anything to the

Re: [PHP] questions about $_SERVER

2012-02-13 Thread Stuart Dallas
On 13 Feb 2012, at 06:28, Rui Hu wrote: How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know if I want to modify $_SERVER myself? Once your script starts the superglobals are no different to any other variables, except that they're in scope at all times. The only

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Paul M Foster
On Mon, Feb 13, 2012 at 09:01:03AM +0100, Simon Schick wrote: Hi, Paul I personally pretty much like the idea of auto-loaders, but that's a personal point of view. If you have always develop with scripts having autoloaders you'll hate to write a *require_once* command at the beginning of

Re: [PHP] questions about $_SERVER

2012-02-13 Thread Tedd Sperling
On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote: On 13 Feb 2012, at 06:28, Rui Hu wrote: How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know if I want to modify $_SERVER myself? Once your script starts the superglobals are no different to any other variables,

[PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Haluk Karamete
you may find it weird, actually very weird, but is the following possible load up a post or page into the admin panel and place something like this in to the editor; ?php //assume exec-PHP already active $current_page_url_here = get_current_url(); echo a

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Matijn Woudt
On Mon, Feb 13, 2012 at 7:52 PM, Dotan Cohen dotanco...@gmail.com wrote: From the fine manual [1]: l (lowercase 'L') A full textual representation of the day of the week I can never remember this one, and I use it occasionally. What is the mnemonic for l? How did this letter come to be

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Marc Guay
Based on the terms you're using it sounds like this is a Wordpress question. You'd have a lot better chances of getting an answer if you query a group of WP gurus/geeks. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Marc Guay
How about long dayname? I find it interesting that the character for Day of the month without leading zeros is j, which makes sense to me as a half-Francophone who sometimes calls days jours. Not that it helps me remember it, I have to refer to that page pretty much every time I use date().

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Dotan Cohen
On Mon, Feb 13, 2012 at 22:51, Matijn Woudt tijn...@gmail.com wrote: Hi, I've been wondering where the letter was chosen from too, so I took svn and got all the way back to revision 214 where the options was first added. Note that this commit is June 7, 1996, and we're talking about php2

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Dotan Cohen
On Mon, Feb 13, 2012 at 23:04, Marc Guay marc.g...@gmail.com wrote: How about long dayname? That makes sense. I now have two ways to remember. Thanks! I find it interesting that the character for Day of the month without leading zeros is j, which makes sense to me as a half-Francophone who

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Daniel Brown
On Mon, Feb 13, 2012 at 15:50, Haluk Karamete halukkaram...@gmail.com wrote: you may find it weird, actually very weird, but is the following possible load up a post or page into the admin panel and place something like this in to the editor; ?php //assume exec-PHP already active

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Daniel Brown
On Mon, Feb 13, 2012 at 17:15, Haluk Karamete halukkaram...@gmail.com wrote: Please keep the replies on the list for all to benefit, including the archives. Isn't it TinyMCE considered a WYSIWYG one? but, anyway, that's beside the main point. Indeed. Hence: even

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Haluk Karamete
Yeah, but n the context of wordpress, that does not fly. If I do a die; in the middle of wp's tinymce editor, and check back the page, the title is already out there. first 5 lines would be something like !DOCTYPE html html dir=ltr lang=en-US head meta charset=UTF-8 / titlethe wordpress page

[PHP] Re: Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Elbert F
Hi Simon, Moving the set_error_handler to index.php gives the developer the ability to remove it before pushing the site to a production environment. I agree that in most cases you don't want the live site to fail completely when it trips over an unset variable but I prefer to have it on by

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Bastien
Bastien Koert On 2012-02-13, at 5:34 PM, Haluk Karamete halukkaram...@gmail.com wrote: Yeah, but n the context of wordpress, that does not fly. If I do a die; in the middle of wp's tinymce editor, and check back the page, the title is already out there. first 5 lines would be something

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Haluk Karamete
Search engines would still be indexing the original page's title. I need each unique URL to have its own unique, robot friendly title. Again, this question is strictly within WP context. On Mon, Feb 13, 2012 at 6:49 PM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-02-13, at 5:34