robert mena | 1 Aug 2011 04:13
Picon

Understanding deprecated features from 5.2 -> 5.3

Hi,

I am planning to upgrade my server from 5.2 to 5.3 but I am not sure if the
deprecated features will simply throw warning messages but work or won't
work at all.  So far I've read that deprecated features are going to be
removed on later versions.

Unfortunately I host sites and some may use features like register_globals
and I need to know what to expect.
Richard Quadling | 1 Aug 2011 13:33
Picon
Gravatar

What is valid for a named parameter in a prepared query using PDO_SQLSRV.

Hi.

Just started using PDO with the nice and shiny SQLSRV driver form
Microsoft for SQL Server.

I seem to be having an issue with named parameters in prepared statements.

Are there limitations to the characters that can be used for named parameters.

UPPER, lower and MixedCase all seem OK, but I think I'm messing up with _.

And my brain JUST fired and told me _ is a single character wildcard
(as when used within a LIKE statement).

Can anyone confirm?

The usernote http://www.php.net/manual/en/pdo.prepared-statements.php#97162
mentions the use of hyphen (-), but not underscore (_).

I'm also going to be converting an old style coding mysql to mysqli
prepared statements (I know very little mysql, so 2 lots of learning
going on here).

Would mysqli have the same behaviour?

Is it driver specific?

Regards,

Richard.
(Continue reading)

Dan Baughman | 1 Aug 2011 16:27
Picon

3.1.9 build of APC win 64

Does anyone know where you can download a 64 bit build of apc 3.1.9?

I want to take advantage of some of the stuff they've pushed out since 3.1.8
for windows, but can't find a 64 bit binary to save my life.
Lester Caine | 1 Aug 2011 17:20
Picon
Favicon
Gravatar

Re: 3.1.9 build of APC win 64

Dan Baughman wrote:
> Does anyone know where you can download a 64 bit build of apc 3.1.9?
>
> I want to take advantage of some of the stuff they've pushed out since 3.1.8
> for windows, but can't find a 64 bit binary to save my life.

http://www.anindya.com/php-5-3-6-x64-64-bit-for-windows/ is still 3.1.6, and 
while I expect Anindya will be running a 5.3.7 soon with the later libraries, 
but I've dropped a comment asking if 3.1.9 will build for use with 5.3.6 and 
Anindya is normally quite quick responding if requests are simple.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--

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

Dan Baughman | 1 Aug 2011 20:36
Picon

Re: 3.1.9 build of APC win 64

Thank you.

On Mon, Aug 1, 2011 at 9:20 AM, Lester Caine <lester <at> lsces.co.uk> wrote:

> Dan Baughman wrote:
>
>> Does anyone know where you can download a 64 bit build of apc 3.1.9?
>>
>> I want to take advantage of some of the stuff they've pushed out since
>> 3.1.8
>> for windows, but can't find a 64 bit binary to save my life.
>>
>
>
http://www.anindya.com/php-5-**3-6-x64-64-bit-for-windows/<http://www.anindya.com/php-5-3-6-x64-64-bit-for-windows/>is
still 3.1.6, and while I expect Anindya will be running a 5.3.7 soon with
> the later libraries, but I've dropped a comment asking if 3.1.9 will build
> for use with 5.3.6 and Anindya is normally quite quick responding if
> requests are simple.
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact>
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - http://www.firebirdsql.org/**index.php<http://www.firebirdsql.org/index.php>
>
> --
(Continue reading)

Ren | 2 Aug 2011 07:28
Picon

Keyword Constructor

For a long time I wanted keyword parameters in PHP.  But thanks to
newer features like traits and reflection classes I have come up with
something that looks pretty close.

    trait KeywordConstructor {
        public function __construct($members) {
            $class = new ReflectionClass($this);
            $properties = $class->getProperties();

            foreach ($properties as $p) {
                $name = $p->getName();

                if (isset($members[$name])) {
                    $this->$name = $members[$name];
                }
            }
        }
    }

     class User {
         use KeywordConstructor;
         private $name;
         private $age;
     }

    $lobby = new User(['name' => 'Lobby', 'age' => 36]);

Right now this requires the trunk version of PHP to work.  I just
wanted to share this in case anyone finds it interesting and/or
useful.
(Continue reading)

EasyPHP | 2 Aug 2011 09:58
Picon
Gravatar

New version : EasyPHP 5.3.7 RC4 with PHP 5.3.7 RC4

Hi

PHP 5.3.7 RC4 is now included in a the Wamp package EasyPHP 5.3.7 RC4.
Enjoy!

Website : www.easyphp.org
Screenshots : www.easyphp.org/screenshots.php
Facebook page : www.facebook.com/easywamp
Twitter : www.twitter.com/easyphp

--

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

Sharl.Jimh.Tsin | 2 Aug 2011 12:24
Picon
Gravatar

put code into a function then the code dead,very strange.

hi,everyone
	it is a very strange problem,At first,i put my code into the method
inner,it works.see below:

******************* start

    $str = "SQL HERE";
    if (1 == 1) {

        $array = preg_split("~[^\"],~", $body);

        for ($index1 = 0; $index1 < count($motoCols); $index1++) {
            $tmp = "";
            for ($index = 0; $index < count($array); $index++) {
                //取出每个JSON块
                if ($index == count($array) - 1) {
                    $tempStr = $array[$index];
                } else {
                    $tempStr = $array[$index] . "}";
                }
                //转换成JSON 对象
                $json = json_decode($tempStr);

                //过滤掉数据库中的非法字段
                if (!in_array($json->key, $motoCols)) {
                    continue;
                }
                if ($json->key == $motoCols[$index1]) {
                    $tmp = $json->val;
                    if ($index == 10 || $index == 12 || $json->key ==
(Continue reading)

Simon J Welsh | 2 Aug 2011 12:29
Picon
Gravatar

Re: put code into a function then the code dead,very strange.

On 2/08/2011, at 10:24 PM, Sharl.Jimh.Tsin wrote:

> hi,everyone
> 	it is a very strange problem,At first,i put my code into the method
> inner,it works.see below:
> 
> [snip]
> 
> As you can see,it seems to be impossible.Can someone tell me WHY?
> 
> -- 
> Best regards,
> Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

You're using $motoCols in your function, but have not defined it or passed it as an argument.
---
Simon Welsh
Admin of http://simon.geek.nz/

--

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

Sharl.Jimh.Tsin | 2 Aug 2011 14:24
Picon
Gravatar

Re: put code into a function then the code dead,very strange.

在 2011-08-02二的 22:29 +1200,Simon J Welsh写道:

> You're using $motoCols in your function, but have not defined it or passed it as an argument.
> ---
> Simon Welsh
> Admin of http://simon.geek.nz/
> 

YES,thanks for taking me out.and i just have a question that the variety
$motoCols has been defined with the function "processJSONtoSQL" together
in the common.php which is imported into the main page at head.

so WHY $motoCols can not be reachable by the function in one page?

-- 
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.

--

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


Gmane