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 wrote: > > > Bastien Koert > > On 2012-02-13, at 5:34 PM, Haluk Kar

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

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

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 the wordpress page title we were trying toi change is already here... http://gmpg.org/x

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 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 web-based things like TinyMC

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 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; > > > //assume exec-PHP already active > > $current_page_url_here = g

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

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 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 (php/fi) here.

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] 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 Matijn Woudt
On Mon, Feb 13, 2012 at 7:52 PM, Dotan Cohen 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 chosen? Can anyone

[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; click me"; if ( $_GET['var1']=='val1' ) { //change the current post's html title to val1 without using javascript/jquery } ?>

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

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

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 thi

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 us

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 a