Re: [PHP] About PHP CMS

2007-07-07 Thread Anton C. Swartz IV
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.1/889 - Release Date: 7/6/2007 8:00 PM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: [PHP] About PHP CMS

2007-07-07 Thread Nathan Nobbe
fogot to copy the list on this as well; my bad :( -- Forwarded message -- From: Nathan Nobbe <[EMAIL PROTECTED]> Date: Jul 7, 2007 3:00 PM Subject: Re: [PHP] About PHP CMS To: Kelvin Park <[EMAIL PROTECTED]> On 7/7/07, Kelvin Park <[EMAIL PROTECTED]> wrote: Looks like its quite

Re: [PHP] About PHP CMS

2007-07-07 Thread Nathan Nobbe
kelvin, here is the example: catalog.php load('catalog.xsl'); $xsl->importStyleSheet($doc); $doc->load('catalog.xml'); echo $xsl->transformToXML($doc); ?> catalog.xml Empire Burlesque Bob Dylan USA Columbia 10.90 1985 catalog.xsl http://www.w3.org/1999/XSL/Transform";> My CD Collecti

Fwd: [PHP] About PHP CMS

2007-07-07 Thread Nathan Nobbe
forgot to copy the list on this one, sorry -- Forwarded message -- From: Nathan Nobbe <[EMAIL PROTECTED]> Date: Jul 7, 2007 2:13 PM Subject: Re: [PHP] About PHP CMS To: Kelvin Park <[EMAIL PROTECTED]> On 7/7/07, Kelvin Park <[EMAIL PROTECTED]> wrote: Can XSLT be used to separate

Re: [PHP] About PHP CMS

2007-07-07 Thread Nathan Nobbe
to keep html separate from php you can also look at XSLT. ive heard good and bad things about smarty. -nathan On 7/6/07, Davi <[EMAIL PROTECTED]> wrote: Em Sexta 06 Julho 2007 21:24, Kelvin Park escreveu: > Is it possible to have PHP code completely separate from the HTML page that > needs to

Re: [PHP] checking for duplicate values among five variables

2007-07-07 Thread tedd
At 9:51 PM -0500 7/6/07, Kenn Murrah wrote: Can anyone help me with a way to determine of two or more variables have the same value? For instance, $a1 = 1000 $a2 = 2000 $a3 = 2000 $a4 = 4000 $a5 = 5000 I want check these five variables and determine whether, as in this case, two or more of t

Re: [PHP] getting timestamp for first day of current week

2007-07-07 Thread Olav Mørkrid
what i need is that "monday" means "monday this week", regardless of whether i ask on monday, tuesday, wednesday, thursday, friday, saturday or sunday. the way php works now, i have to something like this: if(date("l") == "monday") $from = date("Y-m-d"); // if today if monday, just give toda

Re: [PHP] Re: PHP Brain Teasers

2007-07-07 Thread tedd
At 8:26 PM -0700 7/6/07, [EMAIL PROTECTED] wrote: Isn't this a PHP list? Why is there discussion about chickens? if ($this == "PHP List") { unset('chicken discussion!'); } Because obviously, we occasionally wander off topic. Your php example made your point very well and was within the subje

[PHP] Re: what trick is this? How to do it?

2007-07-07 Thread Man-wai Chang
> On a sidenote, this has nothing whatsoever to do with PHP, it's > presentation in a client-browser we're looking at. I asked here because I believe good PHP programmers are usually well-versed in client-side stuffs. :) -- @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v

Re: [PHP] checking for duplicate values among five variables

2007-07-07 Thread Kenn Murrah
Thanks, Robert ... that was EXACTLY what I needed. kennM Robert Cummings wrote: On Fri, 2007-07-06 at 23:03 -0400, Robert Cummings wrote: On Fri, 2007-07-06 at 21:51 -0500, Kenn Murrah wrote: Can anyone help me with a way to determine of two or more variables have the same value? Fo

[PHP] Re: what trick is this? How to do it?

2007-07-07 Thread M. Sokolewicz
Man-wai Chang wrote: >> I'm listening to the song now without logging in, just running this in >> the URL bar: >> javascript:floatingWindow.hide(); >> and the login window is gone :) > > So is there a proper way to create a modal window inside a browser? > There is no "proper" way. You have vari

Re: [PHP] Finding text in a variable

2007-07-07 Thread Alan Milnes
On 07/07/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-07-06 at 22:46 +0100, Alan Milnes wrote: > I have a piece of code which uses curl to get a web page and puts it > into a variable. I now need to search that variable and find > everything between `div class="msgarea"` and the n

[PHP] Re: what trick is this? How to do it?

2007-07-07 Thread Man-wai Chang
> I'm listening to the song now without logging in, just running this in > the URL bar: > javascript:floatingWindow.hide(); > and the login window is gone :) So is there a proper way to create a modal window inside a browser? -- @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org

Re: [PHP] Re: what trick is this? How to do it?

2007-07-07 Thread Tijnema
On 7/7/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: Man-wai Chang wrote: > http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ > > How did he/she do it? I meant the modal login window... > Just simple Javascript stuff. Just create a large div block that is absolutely positioned over the top of

Re: [PHP] Re: PHP Brain Teasers

2007-07-07 Thread Tijnema
On 7/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Isn't this a PHP list? Why is there discussion about chickens? if ($this == "PHP List") { unset('chicken discussion!'); } Hmm, I'm too bad with this things :( For me, the chicken never predated the chicken egg, and the chicken egg never

[PHP] Re: what trick is this? How to do it?

2007-07-07 Thread Colin Guthrie
Man-wai Chang wrote: > http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ > > How did he/she do it? I meant the modal login window... > Just simple Javascript stuff. Just create a large div block that is absolutely positioned over the top of everything and spans the whole width/height of the

[PHP] what trick is this? How to do it?

2007-07-07 Thread Man-wai Chang
http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... -- @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.21.5 ^ ^ 1

Re: [PHP] Inserting single quotes

2007-07-07 Thread Jim Lucas
skip evans wrote: Yes, it turns out the production server did not have a php.ini file!!! I copied the php.ini-recommended file into place, and it has magic_quotes_gpc off and that did the trick. Thanks much! Skip A good thing to use though, is code that will detect if it is turned on. So