Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Date: Mon, 09 Jan 2012 13:31:08 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: transfering all MySQL rows to an array References: <9mtls9Fhk7U1@mid.uni-berlin.de> <9mu3ncF3n3U1@mid.uni-berlin.de> <9mu778FolU1@mid.uni-berlin.de> <9mulu8Fld7U1@mid.uni-berlin.de> <4f0aba41$0$6975$e4fe514c@news2.news.xs4all.nl> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Message-ID: <793rt8-dqq.ln1@luuk.invalid.lan> Lines: 96 NNTP-Posting-Host: 2001:980:9089:1:216:76ff:fee1:aa6c X-Trace: 1326112501 news.xs4all.nl 6846 [2001:980:9089:1:216:76ff:fee1:aa6c]:49458 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4349 On 09-01-2012 13:24, Gregor Kofler wrote: > Am 2012-01-09 11:27, Luuk meinte: >> On 09-01-2012 11:09, Gregor Kofler wrote: >>> Am 2012-01-09 10:58, Erwin Moller meinte: >>>> On 1/9/2012 1:02 AM, Jerry Stuckle wrote: >>>>> On 1/8/2012 6:07 PM, M. Strobel wrote: >>>>>> Am 08.01.2012 20:04, schrieb Gregor Kofler: >>>>>>> Am 2012-01-08 19:56, M. Strobel meinte: >>>>>> -------cut >>>>>>>> compiled extension in C vs. extension in PHP. >>>>>>> >>>>>>> I'm not aware of extensions written in PHP. You could have classes or a >>>>>>> framework written in PHP. >>>>>>> >>>>>>> Gregor >>>>>>> >>>>>> >>>>>> Most or all of: Mailers, Filers, AJAX, ADODB, PEAR stuff, ... >>>>>> >>>>>> Maybe you would not call it extension... >>>>>> >>>>>> /Str. >>>>> >>>>> No, those are not extensions. >>>>> >>>> >>>> Hi Jerry and Gregor, >>>> >>>> I am also confused by the naming used regarding extensions used in PHP. >>>> I know extensions you enable in php.ini are "real" extensions in the >>>> sense that uncommenting them will add functionality to PHP (by means of >>>> exposing the functionality in a so or dll to PHP.). >>>> This in contrast to adding functionality WRITTEN in PHP to PHP. (Like >>>> any function you write yourself in PHP.) >>>> >>>> But the word "extension" is used a lot. >>>> For example in PEAR: >>>> PEAR - PHP Extension and Application Repository >>>> while all in PEAR is only PHP-code (to my knowledge). >>>> >>>> Just saying I can really understand Strobels confusion. :-) >>>> >>>> Can you shed some light on that? >>> >>> The manual features a list of "real" extensions: >>> >>> http://php.net/manual/en/extensions.php >>> >>>> Was PEAR maybe a misnomer? >>> >>> IMO: Yes. >>> >>> Gregor >> >> Interesting reading from "What is PHP's MySQL Native Driver?" on >> http://www.php.net/manual/en/mysqli.overview.php#mysqli.overview.mysqlnd >> >> The mysql extension, the mysqli extension and the PDO MySQL driver *can* >> each be individually configured to use either libmysql or mysqlnd. As >> mysqlnd is designed specifically to be utilised in the PHP system it has >> numerous memory and speed enhancements over libmysql. You are strongly >> encouraged to take advantage of these improvements. >> >> The table at the end suggests that PDO is the future when talking about >> PHP<-->MySQL > > Erm... > > " > [...] > > Recommended by MySQL for new projects > mysqli: Yes - preferred option > PDO: Yes > > [...] > " > > There's nothing wrong with PDO, but I can't see how this table proves > your claim. > > Gregor > > > > o, lol, it was not my claim, it was my understanding from looking at that table.... (acvtive development as of PHP5.3...) PDO cannot (yet) be the preferred option, because not all options have a YES... ;) -- Luuk