Re: Error with Arrays
| From: | Gabor Hojtsy | Date: | Tue, 30 May 2006 13:35:53 +0000 |
| Subject: | Re: Error with Arrays | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-31661@lists.php.net to get a copy of this message | ||
Hi,
Since your problem has nothing to do with webmastering of the php.net
website, it does not belong in here.... Please contact
php-general@lists.php.net (a mailing list) with support questions or see
http://php.net/support for more support options.
Regards,
Gabor Hojtsy
Nitesh Shah (QualiSpace) wrote:
> Hello,
>
> I get the following error while running a PHP script on my server.
> The error message is as below
>
>
>
> Warning: array_merge() [
>
> <http://monitor.qualispace.com/admin/function.array-merge>
> function.array-merge]: Argument #2 is not an array in
> /phpservmonv3/admin/update.php on line 83
>
>
>
> The extract of the code is given below
>
>
>
> <?PHP
>
> } else if ($finalupdate == "YES") {
>
> $servername = $_SESSION['servname'];
>
> $serverip = $_SESSION['serverip'];
>
> $serverid = $_SESSION['serverid'];
>
> $oldservices = $_SESSION['oldservices'];
>
>
>
> $nservices = $_POST['nservices'];
>
> $allservices = array_merge($nservices,$oldservices); // This is
> the line number 83 which throws the error
>
> $total_services = count($allservices);
>
> #$total_services = count($oldservices) + count($nservices);
>
> echo "Updating <b> $servername </b> with <b> $total_services
> </b>
> Services <BR> ";
>
>
>
>
>
> Can you please help me find the solution to this error message?
>
> Warm Regards,
>
> Nitesh Shah
> System Admin
> Technical Desk
> QualiSpace - A QuantumPages Enterprise
> ===========================
> Tel India: +91 (22) 6792 - 1480
> Tel US: +1 (614) 827 - 1224
> Fax India: +91 (22) 6792 - 1484
> URL: <blocked::http://www.qualispace.com/>
> http://www.qualispace.com
> ===========================
> For Any Technical Query Please Use:
> <blocked::http://helpdesk.qualispace.com/>
> http://helpdesk.qualispace.com
> QualiSpace Community Discussion forum:
> <blocked::http://forum.qualispace.com/>
> http://forum.qualispace.com
>
>
>
>