parse_str() expects parameter 1 to be string, array given

parse_str() expects parameter 1 to be string, array given

am 19.10.2009 09:45:12 von Julian Muscat Doublesin

--001517402ba8f82737047644ec49
Content-Type: text/plain; charset=ISO-8859-1

Hello* *Everyone,

I am geetting the error below. Can you please guide me on a fix. It is
working on the live site but not on local server. Has anyone ever experinced
this error before.
*
Warning*: parse_str() expects parameter 1 to be string, array given**

--001517402ba8f82737047644ec49--

Re: parse_str() expects parameter 1 to be string, array given

am 19.10.2009 10:05:45 von Tommy Pham

On Mon, Oct 19, 2009 at 12:45 AM, Julian Muscat Doublesin
wrote:
> Hello* *Everyone,
>
> I am geetting the error below. Can you please guide me on a fix. It is
> working on the live site but not on local server. Has anyone ever experinced
> this error before.
> *
> Warning*: parse_str() expects parameter 1 to be string, array given**
>

1) Some code would be give more info as where the bug is.
2) Did you read this? http://www.php.net/manual/en/function.parse-str.php

Regards,
Tommy

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

Re: parse_str() expects parameter 1 to be string, array given

am 19.10.2009 14:30:48 von Al

Use var_dump() and see exactly what your variable is.

You can be certain it is really an array; the parser is good about such warnings.

Fix the source of the variable given to parse_str.

Julian Muscat Doublesin wrote:
> Hello* *Everyone,
>
> I am geetting the error below. Can you please guide me on a fix. It is
> working on the live site but not on local server. Has anyone ever experinced
> this error before.
> *
> Warning*: parse_str() expects parameter 1 to be string, array given**
>

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