php-general Digest 4 Aug 2007 12:11:02 -0000 Issue 4942

Topics (messages 260156 through 260172):

Re: OT- why is network solutions more than godaddy?
        260156 by: Micky Hulse
        260157 by: Daniel Brown
        260158 by: Robert Cummings
        260159 by: Robert Cummings
        260160 by: Daniel Brown
        260161 by: Daniel Brown
        260163 by: Robert Cummings
        260164 by: tedd
        260165 by: tedd
        260167 by: Robert Cummings

Re: UTF-8 support
        260162 by: adel
        260171 by: Naz Gassiep

Output Buffering and zlib Compression Issue
        260166 by: Chris
        260168 by: Jan Reiter
        260169 by: Chris
        260170 by: Jan Reiter

Problem with getting time in EST
        260172 by: Crab Hunt

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 ---
I use and love <http://www.namecheap.com/>

8.88$, plus whois guard.

The control panel is great. Fast customer service.

Also, I personally would avoid mixing host and registrar.

Cheers,
M


--
Wishlists: <http://snipurl.com/1gqpj>
   Switch: <http://browsehappy.com/>
     BCC?: <http://snipurl.com/w6f8>
       My: <http://del.icio.us/mhulse>

--- End Message ---
--- Begin Message ---
On 8/3/07, Micky Hulse <[EMAIL PROTECTED]> wrote:
> I use and love <http://www.namecheap.com/>
>
> 8.88$, plus whois guard.
>
> The control panel is great. Fast customer service.
>
> Also, I personally would avoid mixing host and registrar.
>
> Cheers,
> M
>
>
> --
> Wishlists: <http://snipurl.com/1gqpj>
>     Switch: <http://browsehappy.com/>
>       BCC?: <http://snipurl.com/w6f8>
>         My: <http://del.icio.us/mhulse>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

    Yes, but at the core, Namecheap (http://www.namecheap.com/) is
just like me (http://domains.pilotpig.net/) - a domain reseller.  A
bigger, richer, more well-known reseller, but still just a reseller.
Their site looks fancy, mine.... well, I'm no designer, I'm a geek.
I'll stick to what I know.

-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Hey, PHP-General list.... to give something back to everyone, you guys
can have 50% off every month on hosting plans of $10/mo. or more (list
price) at http://www.pilotpig.net/.
Use the coupon code phpgeneralaug07

--- End Message ---
--- Begin Message ---
On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
>
>     Yes, but at the core, Namecheap (http://www.namecheap.com/) is
> just like me (http://domains.pilotpig.net/) - a domain reseller.  A
> bigger, richer, more well-known reseller, but still just a reseller.
> Their site looks fancy, mine.... well, I'm no designer, I'm a geek.
> I'll stick to what I know.

Hmmm, I think yours looks nicer. But again, I'm a geek also and not a
designer :)

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
>
>     Yes, but at the core, Namecheap (http://www.namecheap.com/) is
> just like me (http://domains.pilotpig.net/) - a domain reseller.  A
> bigger, richer, more well-known reseller, but still just a reseller.
> Their site looks fancy, mine.... well, I'm no designer, I'm a geek.
> I'll stick to what I know.

Your site is broken btw, it doesn't support Canadian Dollars you
insensitive clod.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
On 8/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
> >
> >     Yes, but at the core, Namecheap (http://www.namecheap.com/) is
> > just like me (http://domains.pilotpig.net/) - a domain reseller.  A
> > bigger, richer, more well-known reseller, but still just a reseller.
> > Their site looks fancy, mine.... well, I'm no designer, I'm a geek.
> > I'll stick to what I know.
>
> Hmmm, I think yours looks nicer. But again, I'm a geek also and not a
> designer :)
>
> Cheers,
> Rob.
> --
> ...........................................................
> SwarmBuy.com - http://www.swarmbuy.com
>
>     Leveraging the buying power of the masses!
> ...........................................................
>

    Mine looks cheaper!  Heh.

    I actually lose a penny for each domain I sell at that price, I
think, but it's an attempt to gain attention for my newest hosting
company.  And by the way....
<plug shame="no">
    Check out the blurb in my signature!
</plug>

-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Hey, PHP-General list.... to give something back to everyone, you guys
can have 50% off every month on hosting plans of $10/mo. or more (list
price) at http://www.pilotpig.net/.
Use the coupon code phpgeneralaug07

--- End Message ---
--- Begin Message ---
On 8/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
> >
> >     Yes, but at the core, Namecheap (http://www.namecheap.com/) is
> > just like me (http://domains.pilotpig.net/) - a domain reseller.  A
> > bigger, richer, more well-known reseller, but still just a reseller.
> > Their site looks fancy, mine.... well, I'm no designer, I'm a geek.
> > I'll stick to what I know.
>
> Your site is broken btw, it doesn't support Canadian Dollars you
> insensitive clod.
>
> Cheers,
> Rob.
> --
> ...........................................................
> SwarmBuy.com - http://www.swarmbuy.com
>
>     Leveraging the buying power of the masses!
> ...........................................................
>

    Ha!  Which one, the domains portion of it?

-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Hey, PHP-General list.... to give something back to everyone, you guys
can have 50% off every month on hosting plans of $10/mo. or more (list
price) at http://www.pilotpig.net/.
Use the coupon code phpgeneralaug07

--- End Message ---
--- Begin Message ---
On Fri, 2007-08-03 at 17:13 -0400, Daniel Brown wrote:
> On 8/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
> > >
> > >     Yes, but at the core, Namecheap (http://www.namecheap.com/) is
> > > just like me (http://domains.pilotpig.net/) - a domain reseller.  A
> > > bigger, richer, more well-known reseller, but still just a reseller.
> > > Their site looks fancy, mine.... well, I'm no designer, I'm a geek.
> > > I'll stick to what I know.
> >
> > Your site is broken btw, it doesn't support Canadian Dollars you
> > insensitive clod.
> >
> 
>     Ha!  Which one, the domains portion of it?

When you go to Shopping Cart there's a currency select list.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
At 5:11 PM -0400 8/3/07, Robert Cummings wrote:
On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
Your site is broken btw, it doesn't support Canadian Dollars you
insensitive clod.

Ahhh, ya frostback.

Ya can't blame a man a boot dat, eh?

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
At 1:56 PM -0700 8/3/07, Micky Hulse wrote:
Also, I personally would avoid mixing host and registrar.


I've held the other view in keeping them separate -- I have lot's of host, but only one registrar that doesn't provide me hosting.

I had host disappear overnight. It's one thing to put your site up again somewhere else, but it's another to have all your sites go down when a register fails, but I fortunately have never had that happen.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
On Fri, 2007-08-03 at 19:05 -0400, tedd wrote:
> At 5:11 PM -0400 8/3/07, Robert Cummings wrote:
> >On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote:
> >Your site is broken btw, it doesn't support Canadian Dollars you
> >insensitive clod.
> 
> Ahhh, ya frostback.
> 
> Ya can't blame a man a boot dat, eh?

Don't make me set my pet polar bear upon you! He gets really angry when
not within the confines of his igloo.

:B

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/ref.mbstring.php

On 8/3/07, Naz Gassiep <[EMAIL PROTECTED]> wrote:
> The functions trim() and explode() appear to be munging multibyte UTF-8
> strings. I can't find multibyte safe versions of them in the manual, do
> they exist, or do I have to make my own?
> - Naz.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
I've seen that, there is no mb_trim() that I can see.
- Naz.

adel wrote:
http://www.php.net/manual/en/ref.mbstring.php

On 8/3/07, Naz Gassiep <[EMAIL PROTECTED]> wrote:
The functions trim() and explode() appear to be munging multibyte UTF-8
strings. I can't find multibyte safe versions of them in the manual, do
they exist, or do I have to make my own?
- Naz.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message --- When I run the following code (PHP 5.2.2, 5.2.3) via Apache (with an htaccess file), I get this error:

Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer zlib output compression. in ...

Can anyone explain what's going on?

I'm assuming it isn't a bug and I've read the documentation. Did I miss something?


htaccess file code:

php_flag output_buffering Off
php_flag zlib.output_compression On
php_value zlib.output_compression_level "-1"


PHP Code:

<?php

error_reporting(E_ALL | E_NOTICE);
ini_set('display_errors', '1');

ob_start();

echo "You shouldn't see this.";

while (ob_get_level() > 0) {
    ob_end_clean();
}

ob_start();

echo "You SHOULD see this.";

ob_end_flush();

?>

Chris




--- End Message ---
--- Begin Message ---
Hi! 

I'm not quite sure what you are trying to do ... 
Why do you use output buffering in your code, when you turn it off in the
htaccess directive??
php_flag output_buffering Off

The code worked for me. But I tested it without your htaccess settings ... 

Jan

-----Ursprüngliche Nachricht-----
Von: Chris [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 4. August 2007 01:18
An: [EMAIL PROTECTED]
Betreff: [PHP] Output Buffering and zlib Compression Issue

When I run the following code (PHP 5.2.2, 5.2.3) via Apache (with an  
htaccess file), I get this error:

Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer zlib  
output compression. in ...

Can anyone explain what's going on?

I'm assuming it isn't a bug and I've read the documentation. Did I  
miss something?


htaccess file code:

php_flag output_buffering Off
php_flag zlib.output_compression On
php_value zlib.output_compression_level "-1"


PHP Code:

<?php

error_reporting(E_ALL | E_NOTICE);
ini_set('display_errors', '1');

ob_start();

echo "You shouldn't see this.";

while (ob_get_level() > 0) {
     ob_end_clean();
}

ob_start();

echo "You SHOULD see this.";

ob_end_flush();

?>

Chris




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message --- I put set output_buffering off in the htaccess so i could have absolute control in my code.

It doesn't matter what I was trying to do, actually. I created a very basic test case to illustrate the issue.

And the problem won't happen if you don't bother using the htaccess code. Why would I have included it if it weren't necessary to illustrate my issue?

Anyway, it is all irrelevant now as I found the solution in a pear package.

Simply replace:

while (ob_get_level() > 0) {
        ob_end_clean();
}

With:

if (ob_get_level()) {
        while (@ob_end_clean());
}

And the issue is solved.

Chris

--- End Message ---
--- Begin Message ---
Right! 

With zlib compression ob_start() or similar seems to get called before the
user 
script execution. I'm not quite sure why. Anyhow ob_get_level() returns 2
after 
the ob_start() is called for the first time in the script. You can avoid the
error 
with

while (ob_get_level() > 1) {
        ob_end_clean();
}

but it won't kill the buffer containing output before ob_start() is called. 

ob_end_clean();
ob_end_clean();

will reproduce your error, too. This leads to the assumption, that it is an
issue
of advancing the functions internal process pointer.

Same reason why 

$data1 = mysql_fetch_assoc($resultid);
$data2 = mysql_fetch_assoc($resultid);

won't lead to the desired effect either, but 

While($data = mysql_fetch_assoc($resultid)){...}

does, as does

while (@ob_end_clean());

It seems only this way of accessing the buffers allows deleting the
lowermost buffer created before
Script execution.

Jan


-----Original Message-----
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 04, 2007 3:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Output Buffering and zlib Compression Issue

--- End Message ---
--- Begin Message ---
Hi,
I need to get the current time in EST timezone while my current timezone is
CEST. I use the function :

date_default_timezone_set('EST')


But now the time that I get is 1 hour less than the time in EST (
http://wwp.greenwichmeantime.com/time-zone/usa/eastern-time/), probably
without taking care of the daylight savings time (DST)... Can anyone help me
out how to solve it, its an urgent issue for me.

Thanks a lot in advance,
regards,
Rakesh

--- End Message ---

Reply via email to