little correction
these lines: "alt_keywords" => $keywords2,
"alt_description" => $description2,
should be like this: "alt_keywords" => str_replace("\"", """, $keywords2),
"alt_description" => str_replace("\"", """, $description2),
to avoid conflict if a description or a keyword contain a quote