Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$files = array( 'file', 'file1', 'file2', 'file3', 'file4');
$count = count( $files );
$out = array();
for( $i = 0; $i < $count; $i++ ) {
$out[$i] = 'ПЪТЯ ДО СНИМКАТА КОЯТО ЩЕ Е ПО DEFAUT АКО ПОТРЕБИТЕЛЯ НЕ КАЧИ НИЩО';
if( is_uploaded_file( $_FILES[ $files[$i] ]['tmp_name'] ) ) {
$tmp_file = $_FILES[ $files[$i] ]['tmp_name'];
$name = $_FILES[ $files[$i] ]['name'];
$nom_file = mktime() . $name;
$out[$i] = "http://URL-ТО ДЕТ ША СЕ КАЧВА СНИМКАТА!!!!!!!!/files/{$nom_file}";
move_uploaded_file( $tmp_file, "files/{$nom_file}" );
}
$extensions = array("jpg","png","gif","");//позволени типове
$extension_file = end(explode(".",$name));
$extension_file = strtolower($extension_file);
if(!in_array($extension_file,$extensions))
{
$error_picturce_type = '';
$error_picturce_type = "<p>Непозволен тип снимка(.jpg, .png, .gif).</p>";
include "ДЕТ СА ПИШАТ СНИМКИТЕ.php";
exit;
}
}
mysql_query(" INSERT INTO pics (picturce, picturce1, picturce2, picturce3, picturce4) VALUE ('{$out[0]}', '{$out[1]}', '{$out[2]}', '{$out[3]}', '{$out[4]}') ", $mysql );
akolevutd каза:ДЕТ СА ПИШАТ СНИМКИТЕ.php