Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
if($file1)
{
$dname=explode(".",$file1_name);
$dnamesize=count($dname);
$file1_ext=$dname[$dnamesize-1];
$picext=$file1_ext;
if($picext=="gif" or $picext=="jpg")
{
copy($file1, "./pics/".$file1_name."");
chmod ("./pics/".$file1_name."", 0777);
$db->query("INSERT INTO bilder VALUES ('','./pics/$file1_name','$time')");
echo "Photo 1 erfolgreich gespeichert!<br />";
}
else
{
echo "Photo 1: bitte nur .jpg oder .gif datein hochladen!<br />";
}
}
Habe ich es mir doch fast gedacht.Kipperlenny hat gesagt.:$file1 kommt halt von dem Formular der html Datei wo man das Bild hochläd ..... aber woran liegt es denn nun, dass xampp das nicht macht?
Die Upload Pfade richtig setzen? Hm, das hört sich für mich so an, als würde er nur in einen Ordner laden können danach - ist ja blödsinnig
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
print_r($_FILES );