i have the following code:
$filename = $this->getMsisdn().".png";
if (!file_exists(sfConfig::get('sf_upload_dir') . '/rainbowcode/images/profilepics/'.$filename))
{
$filename = "Rainbow-code-1_blck.jpg";
//rename it to msisdn
$source = imagecreatefromjpeg($filename);
}
i JUST want to rename "Rainbow-code-1_blck.jpg" to $this->getMsisdn().".jpg" ??
is this possible?? i want to have the SAME picture but it has a different name
please help?
thank you