php-general Digest 20 Jun 2009 11:10:00 -0000 Issue 6185

Topics (messages 294355 through 294362):

Re: about locale settings
        294355 by: Daniel Brown

Re: PEAR Spreadsheet_Excel_Writer setLocked method
        294356 by: Skip Evans

Re: This Friday's OT Thread
        294357 by: Nitsan Bin-Nun
        294358 by: Dotan Cohen
        294359 by: Dotan Cohen
        294360 by: Eddie Drapkin

Re: isset question
        294361 by: Paul M Foster
        294362 by: Ashley Sheridan

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
On Fri, Jun 19, 2009 at 15:40, Per Jessen<[email protected]> wrote:
>
> http://bugs.php.net/bug.php?id=48612

    See my email to you a moment ago on the impeccability of your
timing, as well.  ;-P

-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

--- End Message ---
--- Begin Message ---
Thodoris wrote:
I've used it for some time but never needed to lock a cell. Here is a piece of code that shows how to apply a format to a cell:
 > Hope it helps. I think that by doing something like this:

$format_bold->setLocked();

while creating the format could do the trick but it is not tested.


No, this didn't do it. I already have some formats I've created for dollar amounts, right align, etc, and applying the setLocked() method to them had no affect.

Skip

--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---
--- Begin Message ---
Collage? you better try highschool ;)

Anyway tomorrow my sis has bat-mitzva ;)

Good night folks!

On Fri, Jun 19, 2009 at 8:42 PM, Daniel Brown <[email protected]> wrote:

>    Hey, folks;
>
>    It's been a while since we've launched a Friday OT thread, so here
> ya' go.  Feel free to post nonsense, babble, share links, blow off
> some steam, bitch and complain about a colleague, whatever.  Just
> remember that you're live to the world and are being archived and
> preserved for future generations.  ;-P
>
>    To start off, something that's affecting us all, as a world
> community, with more frequency.  Safe for work.
>
>        http://fart.ly/xos5z9
>
>    Here's hoping everyone has a great weekend!
>
> --
> </Daniel P. Brown>
> [email protected] || [email protected]
> http://www.parasane.net/ || http://www.pilotpig.net/
> 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
> I'm self-employed. I don't plan on ever laying myself off.
>

Wow, I really replaced "laying" with "getting" in my mental eye and
that sentence made too much sense. Please, don't ever do that to me
again!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

--- End Message ---
--- Begin Message ---
>> I'm self-employed. I don't plan on ever laying myself off.
>
>    Mind out of the gutter, Rob.  Words like "self," "laying," and
> "off" will get you flagged.
>

How naive I was to think that I might be the only one to make the connection!


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

--- End Message ---
--- Begin Message ---
Wait, that's not how everyone else gets ready for a coding marathon?

You guys are doing it wrong!

On Fri, Jun 19, 2009 at 7:03 PM, Dotan Cohen<[email protected]> wrote:
>>> I'm self-employed. I don't plan on ever laying myself off.
>>
>>    Mind out of the gutter, Rob.  Words like "self," "laying," and
>> "off" will get you flagged.
>>
>
> How naive I was to think that I might be the only one to make the connection!
>
>
> --
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote:

> On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote:
> > On 18 June 2009 20:25, LAMP advised:
> >
> > > using !empty() instead isset() will work if you don't care for PHP
> > > Notice: Undefined variable... If you want to avoid PHP Notice
> > > you have
> > > to use both:
> > >
> > > $msg.=  (isset($_POST['mort']) and !empty($_POST['mort'])) ? "The
> > > mortgage amount is  $mort\n" : " ";
> >
> > Absolute rubbish -- as it says at http://php.net/empty, "empty($var) is
> > the opposite of (boolean)$var, except that no warning is generated when
> > the variable is not set." -- so "protecting" empty() with an isset() is
> > a total waste of time, space and cpu cycles.

<snip>

> >
> To be honest, you're still opening yourself up to attack that way. 

Why and how?

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
On Sat, 2009-06-20 at 00:19 -0400, Paul M Foster wrote:
> On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote:
> 
> > On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote:
> > > On 18 June 2009 20:25, LAMP advised:
> > >
> > > > using !empty() instead isset() will work if you don't care for PHP
> > > > Notice: Undefined variable... If you want to avoid PHP Notice
> > > > you have
> > > > to use both:
> > > >
> > > > $msg.=  (isset($_POST['mort']) and !empty($_POST['mort'])) ? "The
> > > > mortgage amount is  $mort\n" : " ";
> > >
> > > Absolute rubbish -- as it says at http://php.net/empty, "empty($var) is
> > > the opposite of (boolean)$var, except that no warning is generated when
> > > the variable is not set." -- so "protecting" empty() with an isset() is
> > > a total waste of time, space and cpu cycles.
> 
> <snip>
> 
> > >
> > To be honest, you're still opening yourself up to attack that way. 
> 
> Why and how?
> 
> Paul
> 
> -- 
> Paul M. Foster
> 
I've only done a little reading on this, but you're opening yourself up
to a XSS attack. If someone posted '<script>//malicious code
here</script>' to your PHP script, you'd essentially be printing that
right back out onto your page.

Thanks
Ash
www.ashleysheridan.co.uk


--- End Message ---

Reply via email to