php-general Digest 6 Sep 2009 11:49:16 -0000 Issue 6325
Topics (messages 297734 through 297743):
Re: Error message
297734 by: Tommy Pham
Re: Who kown this memcache_get_stats function ?
297735 by: hack988 hack988
297736 by: Eddie Drapkin
297737 by: Jonathan Tapicer
297738 by: hack988 hack988
297739 by: Tommy Pham
297740 by: Tommy Pham
297742 by: hack988 hack988
Re: mail attachment
297741 by: Paul M Foster
Re: Include Files in HTML
297743 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 ---
----- Original Message ----
> From: Bruce Dobson <[email protected]>
> To: [email protected]
> 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 (0x000036b1)
>
> 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
--- End Message ---
--- Begin Message ---
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 <[email protected]>:
> 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?
>
--- End Message ---
--- Begin Message ---
On Sun, Sep 6, 2009 at 12:16 AM, hack988 hack988<[email protected]> 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 <[email protected]>:
>> 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.
--- End Message ---
--- Begin Message ---
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<[email protected]> 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 <[email protected]>:
>> 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
>
>
--- End Message ---
--- Begin Message ---
thank "Jonathan" ,"Eddie" :),I think that,i have to read
libmemcached's manual first.
Now I kown one thing:
All function Memcache::xxxx 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 <[email protected]>:
> 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<[email protected]> 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 <[email protected]>:
>>> 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
>>
>>
>
--- End Message ---
--- Begin Message ---
----- Original Message ----
> From: hack988 hack988 <[email protected]>
> To: PHP General List <[email protected]>
> 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
--- End Message ---
--- Begin Message ---
----- Original Message ----
> From: Tommy Pham <[email protected]>
> To: PHP General List <[email protected]>
> 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
--- End Message ---
--- Begin Message ---
I find some detail manual about memcached procedural style API for
php(for example:memcache_get_stats).But now I found detail about this
API.
2009/9/6 Tommy Pham <[email protected]>:
> ----- Original Message ----
>> From: Tommy Pham <[email protected]>
>> To: PHP General List <[email protected]>
>> 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
>
>
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
On Fri, 2009-09-04 at 18:21 -0500, phphelp -- kbk wrote:
> On Sep 4, 2009, at 5:03 PM, [email protected] wrote:
>
> >> Depends on what you are including. The only tags that can be
> >> inside the
> >> head are <base>, <link>, <meta>, <script>, <style>, and <title>.
> >> Everything else is either body or prologue.
> >
> > I meant PHP includes like this one:
> > <?php @include_once("/home/passwords/login.php"); ?>
>
> We know what you mean. Read the responses more carefully, as they are
> telling you what you need to know.
>
> For simplification: The INCLUDE commands put the contents of the
> INCLUDed file into this file, just as if as you had typed it in there.
>
> Ken
>
It's good to remember that PHP isn't inserted into HTML, but the other
way round. PHP can output HTML, but is often used to output many other
formats, from images to xml to documents.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---