473,383 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

PHP error regarding Arrays

I use function to change a password in an xml file using simplexml. It works fine on my local server, as well as from the remote server when I use firefox, But for some reason, when I use IE and test the remote page it gives me the following error:

Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in somepath.php on line 530

Here is the code snippet it points to:

Expand|Select|Wrap|Line Numbers
  1. if ($changes['newpass'][0] == $changes['newpass'][1])
  2.             {
  3.                 $match = true;
  4.  
  5. /* line530*/        $xml->user[$index]->password = $changes['newpass'][0];
  6.                 $xml->user[$index]->username = $changes['username'];
  7.                 $xml->asXML(LOGIN_PATH);
  8.                 $ret = '<h3 style="text-align:center">Username and Password Updated Successfully!</h3>'.LINE_BREAK.
  9.                         '<a class="acceptlink" href="index.php">Back</a>';
}
Jan 24 '08 #1
1 1598
pbmods
5,821 Expert 4TB
Heya, James.

Are you using the ArrayAccess or ArrayObject interface (http://php.net/manual/en/class.arrayobject.php)? There are some known issues with it in PHP v5.0.x:

I doubt this, but SimpleXML *might* have inherited the same issues that SPL did in PHP 5.0. Try upgrading your PHP installation.
Jul 6 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Satish Chimakurthi | last post by:
Hi all, This is in continuation of my email today regarding reading data files. I am stuck with one more problem now. Here are my two data files: a. fluid_grid.dat 1.00000000000000 ...
6
by: muser | last post by:
In the following function there is an access violation error, some memory can't be read. A week ago this code did compile. Can anyone possibly tell me why my compiler is unable to read part of...
7
by: Squignibbler | last post by:
Hi all, I have a question regarding the C++ programming language regarding the nature of the relationship between pointers and arrays. If the statement MyArray is functionally identical to...
4
by: jerrygarciuh | last post by:
Could someone please tell me the correct way to decalre this multidimensional array? TIA! jg var n = = = 25, = 0 ], = = 10, = 20 ],
9
by: niclane | last post by:
Hi, I was reading section 5.5 of Ritchie and Kernighan and saw the following: " ..... char amessage = "now is the time"; char *pmessage = "now is the time";
0
by: Antoine | last post by:
I am Debugging an asp.net that errors in one location, I have been reading all about tracing and pdb and such but still not too clear on the BEST and SIMPLEST way to debug to an approximate but...
3
by: bobcats | last post by:
Good Day to all. I would like to request anybody to provide links on tutorials regarding arrays and string manipulations. Even pdf's would be nice. I am really having a hard time with these things. I...
1
by: patilanjana | last post by:
Hi, I am getting above mentioned errors. Checked msdn, read the comments but I fail to implement it. Please help. Error is regarding using the new and delete operators. Although I do write...
1
by: dewi | last post by:
Dear All, I am trying to compile a C code using Visual C++. Can anyone explain how to solve it? Thank You. #include <math.h> #include <string.h> #include "RV2AJFRONT_NEW.h" #include...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.