Jump to content

how to fix out of memory problem?


lukelee

Recommended Posts

guys, i always got this message:

 

Fatal error: Out of memory (allocated .....

 

i heared this is php bug, but how to solve this problem?

 

my server information is:

 

Hosting package Advance w Full access

Server Name intrigue

cPanel Version 11.23.6-STABLE

cPanel Build 27698

Theme x3

Apache version 2.2.10 (Unix)

PHP version 5.2.8

MySQL version 5.0.51a-community

Architecture i686

Operating system Linux

 

Link to comment
https://forums.phpfreaks.com/topic/139789-how-to-fix-out-of-memory-problem/
Share on other sites

ok, my code is very long, its creating thumbnails and save into database.

 

<?php
require_once('db.php');	
$address = $_POST[house_address];
$price = $_POST[price];
$bathroom = $_POST[bathroom];
$bedroom = $_POST[bedroom];
$garage = $_POST[garage];
$map = $_POST[map];
$description = $_POST[description];

class resizeimage
{
        var $type;
        var $width;
        var $height;
        var $resize_width;
        var $resize_height;
        var $cut;
        var $srcimg;
        var $dstimg;
        var $im;

        function resizeimage($img, $wid, $hei,$c)
        {

                $this->srcimg = $img;
                $this->resize_width = $wid;
                $this->resize_height = $hei;
                $this->cut = $c;

                $this->type = substr(strrchr($this->srcimg,"."),1);

                $this->initi_img();

                $this -> dst_img();

                $this->width = imagesx($this->im);
                $this->height = imagesy($this->im);

                $this->newimg();
                ImageDestroy ($this->im);
        }
        function newimg()
        {


                $resize_ratio = ($this->resize_width)/($this->resize_height);
            
                $ratio = ($this->width)/($this->height);
                if(($this->cut)=="1")
                
                {
                        if($ratio>=$resize_ratio)
                       
                        {
                                 $newimg = imagecreatetruecolor($this->resize_width,$this->resize_height);

                                imagecopyresampled($newimg, $this->im, 0, 0, 0, 0, $this->resize_width,$this->resize_height, (($this->height)*$resize_ratio), $this->height);

                       
                                ImageJpeg ($newimg,$this->dstimg);
                                echo " ";

                        }
                        if($ratio<$resize_ratio)
                    
                        {
                                $newimg = imagecreatetruecolor($this->resize_width,$this->resize_height);
                                imagecopyresampled($newimg, $this->im, 0, 0, 0, 0, $this->resize_width, $this->resize_height, $this->width, (($this->width)/$resize_ratio));

                                ImageJpeg ($newimg,$this->dstimg);
                                echo " !";

                        }

                }
                else
         
                {
                        if($ratio>=$resize_ratio)
                        {
                                $newimg = imagecreatetruecolor($this->resize_width,($this->resize_width)/$ratio);
                                imagecopyresampled($newimg, $this->im, 0, 0, 0, 0, $this->resize_width, ($this->resize_width)/$ratio, $this->width, $this->height);



                                ImageJpeg ($newimg,$this->dstimg);
                                echo " ";

                        }
                        if($ratio<$resize_ratio)
                        {
                                $newimg = imagecreatetruecolor(($this->resize_height)*$ratio,$this->resize_height);
                                imagecopyresampled($newimg, $this->im, 0, 0, 0, 0, ($this->resize_height)*$ratio, $this->resize_height, $this->width, $this->height);


                                

                                ImageJpeg ($newimg,$this->dstimg);
                                echo " ";

                        }
                }

                
        }
              
        function initi_img()
        {
                if($this->type=="jpg")
                {
                        $this->im = imagecreatefromjpeg($this->srcimg);
                }
                if($this->type=="gif")
                {
                        $this->im = imagecreatefromgif($this->srcimg);
                }
                if($this->type=="png")
                {
                        $this->im = imagecreatefrompng($this->srcimg);
                }
        }
      
        function dst_img()
        {
                $full_length  = strlen($this->srcimg);
                $type_length  = strlen($this->type);
                $name_length  = $full_length-$type_length;
                $name         = substr($this->srcimg,0,$name_length-1);
                $this->dstimg = $name."_small.".$this->type;
			$new_small = basename($this->dstimg);

        }
}

$tempimgname1 = strtolower($_FILES["image1"][name]);
$tempimgname1 = mb_convert_encoding(   $tempimgname1,   "gb2312",   "utf-8");
$filesize1=$_FILES['image1']['size'];

$tempimgname2 = strtolower($_FILES["image2"][name]);
$tempimgname2 = mb_convert_encoding(   $tempimgname2,   "gb2312",   "utf-8");
$filesize2=$_FILES['image2']['size'];

$tempimgname3 = strtolower($_FILES["image3"][name]);
$tempimgname3 = mb_convert_encoding(   $tempimgname3,   "gb2312",   "utf-8");
$filesize3=$_FILES['image3']['size'];

$tempimgname4 = strtolower($_FILES["image4"][name]);
$tempimgname4 = mb_convert_encoding(   $tempimgname4,   "gb2312",   "utf-8");
$filesize4=$_FILES['image4']['size'];

$tempimgname5 = strtolower($_FILES["image5"][name]);
$tempimgname5 = mb_convert_encoding(   $tempimgname5,   "gb2312",   "utf-8");
$filesize5=$_FILES['image5']['size'];

if(($filesize1>0)&&($filesize2>0)&&($filesize3 ==0)&&($filesize4 ==0)&&($filesize5 ==0))
{
        if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

		$image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";            
        }
}
else if(($filesize1>0)&&($filesize2>0)&&($filesize3>0)&&($filesize4 ==0)&&($filesize5 ==0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image3"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image3 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3, 150, 150, 1);
		$s_image3 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','3','$s_image3','$image3','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}
else if(($filesize1>0)&&($filesize2>0)&&($filesize4>0)&& ($filesize3 ==0)&& ($filesize5 ==0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image4"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image4 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4, 150, 150, 1);
		$s_image4 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','4','$s_image4','$image4','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}

else if(($filesize1>0)&&($filesize2>0)&&($filesize5>0) && ($filesize3 ==0) && ($filesize4 ==0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image4"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image5 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5, 150, 150, 1);
		$s_image5 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','5','$s_image5','$image5','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}

else if(($filesize1>0)&&($filesize2>0)&&($filesize3>0)&&($filesize4 >0)&& ($filesize5 ==0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image4"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image3 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3, 150, 150, 1);
		$s_image3 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','3','$s_image3','$image3','$description')");

		$image4 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4, 150, 150, 1);
		$s_image4 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','4','$s_image4','$image4','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}

else if(($filesize1>0)&&($filesize2>0)&&($filesize3>0)&&($filesize5 >0)&& ($filesize4 ==0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image4"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image3 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3, 150, 150, 1);
		$s_image3 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','3','$s_image3','$image3','$description')");

		$image5 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5, 150, 150, 1);
		$s_image5 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','5','$s_image5','$image5','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}

else if(($filesize1>0)&&($filesize2>0)&&($filesize4>0)&&($filesize5 >0)&& ($filesize3 ==0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image4"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image4 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4, 150, 150, 1);
		$s_image4 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','4','$s_image4','$image4','$description')");

		$image5 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5, 150, 150, 1);
		$s_image5 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','5','$s_image5','$image5','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}

else if(($filesize1>0)&&($filesize2>0)&&($filesize3>0)&&($filesize4>0)&& ($filesize5>0))
{
            if(copy($_FILES["image1"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1)) && copy($_FILES["image2"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2)) && copy($_FILES["image4"]["tmp_name"],strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4)))
        {
	    
	    $image1 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname1, 260, 260, 1);
		$s_image1 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','1','$s_image1','$image1','$description')");

	    $image2 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname2, 150, 150, 1);
		$s_image2 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','2','$s_image2','$image2','$description')");

		$image3 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname3, 150, 150, 1);
		$s_image3 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','3','$s_image3','$image3','$description')");

		$image4 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname4, 150, 150, 1);
		$s_image4 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','4','$s_image4','$image4','$description')");

		$image5 = basename(strtolower("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5));
		$class = new resizeimage("upload/".date("Y-m-d-h-m-s",time()).$tempimgname5, 150, 150, 1);
		$s_image5 = basename($class->dstimg);
		$query = mysql_query("insert into house (title,address,price,bedroom,bathroom,garage,map,thumb,imagedata1,imagedata,description) values ('house','$address','$price','$bedroom','$bathroom','$garage','$map','5','$s_image5','$image5','$description')");
            echo "Image has been edited, will go back to previous page in 3 sencond";             
        }
}
else
{
echo "You can't leave the first or second image empty." ;
}
?>
<meta http-equiv="Refresh" content="3; URL=http://www.propertyw1.com.au/admin_add_new.php" >

 

(edited to add


tags)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.