Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Richard Heyes
Hi,

> Also, will PHP ever implement the Strict mode similar to Perl's 'using
> Strict'?

Don't know if it's similar having never used Pearl, but there's always
the E_STRICT error level.



-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
Lots of PHP and Javascript code - http://www.phpguru.org
50% reseller discount on licensing now available - ideal for web designers

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



[PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread hack988 hack988
I found memcache_get_stats for memcached in some php code.
I'm search it at php.net's function list,but it no matched result :(.
I had found explain for Memcache::getStats()  at this link
http://www.php.net/manual/en/function.memcache-getstats.php
In this link,tell me that
==
Also you can use memcache_get_stats() function.
==
But I can't find memcache_get_stats function's explain in online manual.
Anybody can help me for using this function?Or give an more detail
link for this function?

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



Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Richard Heyes
Hi (again),

>   error_reporting(E_STRICT);
> ?>

This might work better:



-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
Lots of PHP and Javascript code - http://www.phpguru.org
50% reseller discount on licensing now available - ideal for web designers

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



Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Kevin Waterson
On Sat, 2009-09-05 at 16:11 +0100, Richard Heyes wrote:
> Hi (again),
> 
> >  >  error_reporting(E_STRICT);
> > ?>
> 
> This might work better:
> 
>error_reporting(E_ALL | E_STRICT);
> ?>

E_STRICT is now part of E_ALL

Kevin


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



Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Bobby Pejman
Very nice!  Use of E_STRICT notifies the user of deprecated functions.  Thanks 
for the note. :)

I read that E_ALL forces variable declaration, though I have yet to get that 
working in my code.

--Original Message--
From: Richard Heyes
Sender: richard.he...@gmail.com
To: Bobby Pejman
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP6 Stable Release Schedule
Sent: Sep 5, 2009 8:11 AM

Hi (again),

>   error_reporting(E_STRICT);
> ?>

This might work better:



-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
Lots of PHP and Javascript code - http://www.phpguru.org
50% reseller discount on licensing now available - ideal for web designers



Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Richard Heyes
Hi,

> E_STRICT is now part of E_ALL

Oopsy. Shows how much PHP I do these days...

-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
Lots of PHP and Javascript code - http://www.phpguru.org
50% reseller discount on licensing now available - ideal for web designers

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



Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread J DeBord
On Sat, Sep 5, 2009 at 6:19 PM, Richard Heyes  wrote:

> Hi,
>
> > E_STRICT is now part of E_ALL
>
>
*In PHP 6
*

> Oopsy. Shows how much PHP I do these days...
>
> --
> Richard Heyes
> HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
> Lots of PHP and Javascript code - http://www.phpguru.org
> 50% reseller discount on licensing now available - ideal for web designers
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


[PHP] mail attachment

2009-09-05 Thread Grega Leskovšek
How do I attach a file in mail function or do I have to use PEAR (and if how
...). What are the advantages of PEAR? When do You suggest to use PEAR?
Thanks in advance,
-- Peace refuge: http://users.skavt.net/~gleskovs/
When the sun rises I receive and when it sets I forgive;) Grega Leskovšek


[PHP] [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-05 Thread Andrea Giammarchi

Hi everybody,
I'd love to receive your feedback about my last zero dependencies, easily 
integrable, scalable, fast, lightweight, etc etc Ajax / PHP debugger.

The project has Mit Style License and it is hosted in Google Code:
http://code.google.com/p/formaldehyde/

While this is my blog announcement:
http://webreflection.blogspot.com/2009/09/formaldehyde-ajax-php-error-debugger.html

I hope you'll appreciate the code, the concept, and the simplicity, but here I 
am to know your concerns, or generally speaking, your opinion.

Best Regards,
Andrea Giammarchi
 
_
With Windows Live, you can organize, edit, and share your photos.
http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx

Re: [PHP] mail attachment

2009-09-05 Thread Bastien Koert
RTFM

Bastien

On Saturday, September 5, 2009, Grega Leskovšek  wrote:
> How do I attach a file in mail function or do I have to use PEAR (and if how
> ...). What are the advantages of PEAR? When do You suggest to use PEAR?
> Thanks in advance,
> -- Peace refuge: http://users.skavt.net/~gleskovs/
> When the sun rises I receive and when it sets I forgive;) Grega Leskovšek
>

-- 

Bastien

Cat, the other other white meat

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



[PHP] Error message

2009-09-05 Thread Bruce Dobson
Hi folks,

I am new on this list and to php. I have just downloaded and gotten php 5.3.0 
working with IIS on one computer but my efforts to install it on another 
computer come up with the error message:  

14001 (0x36b1) 

Can anybody tell me what this relates to?

Thanks
Bruce



  

Re: [PHP] Error message

2009-09-05 Thread Tommy Pham
- Original Message 
> From: Bruce Dobson 
> To: php-general@lists.php.net
> Sent: Saturday, September 5, 2009 4:19:29 PM
> Subject: [PHP] Error message
> 
> Hi folks,
> 
> I am new on this list and to php. I have just downloaded and gotten php 5.3.0 
> working with IIS on one computer but my efforts to install it on another 

What OS? What version of IIS?  Did you setup as CGI/FCGI or as ISAPI?

> computer come up with the error message:  
> 
> 14001 (0x36b1) 
> 
> Can anybody tell me what this relates to?

Did you enable file logging in the php.ini?  PS: you might want to ask this in 
php-windows list instead. ;)

Regards,
Tommy

> 
> Thanks
> Bruce

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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread hack988 hack988
Nobody Kown this?This is my second question in this mail-list :(.I
don't kown why it's no reply by anybody.

2009/9/5 hack988 hack988 :
> I found memcache_get_stats for memcached in some php code.
> I'm search it at php.net's function list,but it no matched result :(.
> I had found explain for Memcache::getStats()  at this link
> http://www.php.net/manual/en/function.memcache-getstats.php
> In this link,tell me that
> ==
> Also you can use memcache_get_stats() function.
> ==
> But I can't find memcache_get_stats function's explain in online manual.
> Anybody can help me for using this function?Or give an more detail
> link for this function?
>

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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread Eddie Drapkin
On Sun, Sep 6, 2009 at 12:16 AM, hack988 hack988 wrote:
> Nobody Kown this?This is my second question in this mail-list :(.I
> don't kown why it's no reply by anybody.
>
> 2009/9/5 hack988 hack988 :
>> I found memcache_get_stats for memcached in some php code.
>> I'm search it at php.net's function list,but it no matched result :(.
>> I had found explain for Memcache::getStats()  at this link
>> http://www.php.net/manual/en/function.memcache-getstats.php
>> In this link,tell me that
>> ==
>> Also you can use memcache_get_stats() function.
>> ==
>> But I can't find memcache_get_stats function's explain in online manual.
>> Anybody can help me for using this function?Or give an more detail
>> link for this function?
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Having taken a quick gander at the manual, specifically
memcache_connect(), it appears that the memcache extension has a
procedural style API similar to the procedural style MySQLi API.

$db = mysqli_connect() and mysqli_query($db, ...) vs. $db = new
mysqli() and $db->query(), so $memc = memcache_connect() and
memcache_get_stats($memc) vs. $memc = new memcache and
$memc->get_stats();

Now, on another note, the Memcache extension is pretty old and crusty
and doesn't support a lot of the awesome functionality that's been
built into Memcached as of late.  Specifically, setting/getting a key
based on a specific server, CAS (which can be used to prevent race
conditions), and a whole bunch of other nice options (like a JSON
based serializer for cross-platform compatibility between Memcached
servers).  Instead, I would suggest you use the newer, shinier, more
featureful memcached extension ( http://php.net/memcached
http://pecl.php.net/package/memcached ).  Despite being so similarly
named, the Memcached extension is much better (and I believe faster).
The only disadvantage is that it has to be built with libmemcached (so
you have to have that installed, which could be a problem) and that it
only offers an object oriented API, but neither of those should be an
issue.

Have a look at PECL/Memcached and I wish you the best of luck in your
memcached deployment,  It's difficult, but it's a hell of a lot of fun
and a completely different way of viewing data in PHP.

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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread Jonathan Tapicer
I think that the documentation for memcache_get_stats should be
exactly the same as the one given for the method Memcache::getStats
except that memcache_get_stats should receive as the first parameter a
reference to the Memcache connection.

Hope that helps.

Jonathan


On Sun, Sep 6, 2009 at 1:16 AM, hack988 hack988 wrote:
> Nobody Kown this?This is my second question in this mail-list :(.I
> don't kown why it's no reply by anybody.
>
> 2009/9/5 hack988 hack988 :
>> I found memcache_get_stats for memcached in some php code.
>> I'm search it at php.net's function list,but it no matched result :(.
>> I had found explain for Memcache::getStats()  at this link
>> http://www.php.net/manual/en/function.memcache-getstats.php
>> In this link,tell me that
>> ==
>> Also you can use memcache_get_stats() function.
>> ==
>> But I can't find memcache_get_stats function's explain in online manual.
>> Anybody can help me for using this function?Or give an more detail
>> link for this function?
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread hack988 hack988
thank "Jonathan" ,"Eddie" :),I think that,i have to read
libmemcached's manual first.
Now I kown one thing:
All function Memcache:: can replace to memcache_xxx,some diffrent
is memcache_xxx has an fixed param 0,it's used for pass a memcached
link resource except memcache_connect function.

2009/9/6 Jonathan Tapicer :
> I think that the documentation for memcache_get_stats should be
> exactly the same as the one given for the method Memcache::getStats
> except that memcache_get_stats should receive as the first parameter a
> reference to the Memcache connection.
>
> Hope that helps.
>
> Jonathan
>
>
> On Sun, Sep 6, 2009 at 1:16 AM, hack988 hack988 wrote:
>> Nobody Kown this?This is my second question in this mail-list :(.I
>> don't kown why it's no reply by anybody.
>>
>> 2009/9/5 hack988 hack988 :
>>> I found memcache_get_stats for memcached in some php code.
>>> I'm search it at php.net's function list,but it no matched result :(.
>>> I had found explain for Memcache::getStats()  at this link
>>> http://www.php.net/manual/en/function.memcache-getstats.php
>>> In this link,tell me that
>>> ==
>>> Also you can use memcache_get_stats() function.
>>> ==
>>> But I can't find memcache_get_stats function's explain in online manual.
>>> Anybody can help me for using this function?Or give an more detail
>>> link for this function?
>>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>

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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread Tommy Pham
- Original Message 
> From: hack988 hack988 
> To: PHP General List 
> Sent: Saturday, September 5, 2009 9:16:51 PM
> Subject: Re: [PHP] Who kown this memcache_get_stats function ?
> 
> Nobody Kown this?This is my second question in this mail-list :(.I
> don't kown why it's no reply by anybody.
> 

You sample on it's usage?

> 2009/9/5 hack988 hack988 :
> > I found memcache_get_stats for memcached in some php code.
> > I'm search it at php.net's function list,but it no matched result :(.
> > I had found explain for Memcache::getStats()  at this link
> > http://www.php.net/manual/en/function.memcache-getstats.php
> > In this link,tell me that
> > ==
> > Also you can use memcache_get_stats() function.
> > ==
> > But I can't find memcache_get_stats function's explain in online manual.
> > Anybody can help me for using this function?Or give an more detail
> > link for this function?
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread Tommy Pham
- Original Message 
> From: Tommy Pham 
> To: PHP General List 
> Sent: Saturday, September 5, 2009 10:41:39 PM
> Subject: Re: [PHP] Who kown this memcache_get_stats function ?
> 
> - Original Message 
> > From: hack988 hack988 
> > To: PHP General List 
> > Sent: Saturday, September 5, 2009 9:16:51 PM
> > Subject: Re: [PHP] Who kown this memcache_get_stats function ?
> > 
> > Nobody Kown this?This is my second question in this mail-list :(.I
> > don't kown why it's no reply by anybody.
> > 
> 
> You sample on it's usage?
You mean sample on it's usage?

You need to run the daemon first before you can use it.  See here:
http://www.danga.com/memcached/

I got that link from: http://us2.php.net/manual/en/intro.memcache.php

> 
> > 2009/9/5 hack988 hack988 :
> > > I found memcache_get_stats for memcached in some php code.
> > > I'm search it at php.net's function list,but it no matched result :(.
> > > I had found explain for Memcache::getStats()  at this link
> > > http://www.php.net/manual/en/function.memcache-getstats.php
> > > In this link,tell me that
> > > ==
> > > Also you can use memcache_get_stats() function.
> > > ==
> > > But I can't find memcache_get_stats function's explain in online manual.
> > > Anybody can help me for using this function?Or give an more detail
> > > link for this function?
> > >
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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



Re: [PHP] mail attachment

2009-09-05 Thread Paul M Foster
On Sat, Sep 05, 2009 at 06:52:53PM +0200, Grega Leskov??ek wrote:

> How do I attach a file in mail function or do I have to use PEAR (and if how
> ...). What are the advantages of PEAR? When do You suggest to use PEAR?

You *can* attach something to an email using the mail() function, but
the process is complicated, and the mail() function isn't really set up
to do this. I believe the usual suggestion for users who ask this
question is to use the phpmailer package. It does this more easily.
Google for phpmailer.

Paul

-- 
Paul M. Foster

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