Question : php object iteration code improvement

I have the following code:
What I'm trying to do is upload 3 image files and iterate through them
But I'm having some difficulties While doing the iteration here
}/*else {
$i = 1;
$this->temp_path.$i   = $photo['tmp_name'];
$this->filename.$i    = $maxid.basename($photo['name']);
$i++;      
} */

Anybody any ideas....???
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
$photo_array = array($file1, $file2, $file3);
$flag_error = false;
foreach ($photo_array as $photo) {
if(!$photo || empty($photo) || !is_array($photo) ) {
// error: nothing uploaded or wrong argument usage
$this->errors[] = "Image was not uploaded";
$flag_error = true;
}elseif($photo['error'] != 0) {
// error: nothing uploaded or wrong argument usage
$this->errors[] = $this->upload_errors[$photo['error']];
$flag_error = true;
}/*else {
$i = 1;
$this->temp_path.$i   = $photo['tmp_name'];
$this->filename.$i    = $maxid.basename($photo['name']);
$i++;	
} */
}
if ($flag_error) { 
return false; 
}elseif (!$flag_error) {
					
$this->temp_path1   = $file1['tmp_name'];
$this->filename1    = $maxid.basename($file1['name']);
$this->temp_path2  = $file2['tmp_name'];
$this->filename2    = $maxid.basename($file2['name']);
$this->temp_path3  = $file3['tmp_name'];
$this->filename3    = $maxid.basename($file3['name']);
$this->datecreate = strftime("%Y-%m-%d %H:%M:%S", time());
return true;
}

Answer : php object iteration code improvement

If yes, this is an issue with outlook 2007 trying to access the webservcies part of your exchange server.

The link below heklps go through to check/test these settings.

http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/configuring-exchange-server-2007-web-services-urls.html
Random Solutions  
 
programming4us programming4us