Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

ja egal ob txt bild video ...

hier mal mein html code dürfte aber nicht daran liegen den hab ich nämlich nicht verändert:

<?php

require_once('connect.inc.php');

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Pic-It-UP!</title>

</head>

<body>

<center>

<form action="upload.php" method="post" enctype="multipart/form-data">

<p>PIC-IT-UP!:</p>

<input type="hidden" name="MAX_FILE_SIZE" value="1500" />

<p><label>Datei hochladen:</label><br />

<input type="file" name="name"/><br />

<p><label>Beschreibung:</label><br />

<input type="text" name="desc" maxlength="255"/><br />

<input type="submit" value="Hochladen" />

</form>


</center>


</body>

</html>

nein du verstehst nicht

wenn ich im html dok auf hochladen klicke erhalte ich die box ob ich upload.php herunterladen möchte .

dann bekomm ich ne schöne weise seite

und an den configs von apche kanns auch net liegen weil die noch immer gleich sind.

und andere skripte nach wie vor funktionieren.

ich schätze mal hier fällt keinem mehr was ein?

Vielleicht wäre der erste Schritt von Dir, einmal eben das genannte Error Logging einzuschalten und dann Dich selbst an das Beheben der Fehler zu machen, denn dadurch lernst Du. Ich gehe im Moment davon aus, dass Dein Webserver bzw PHP nicht richtig konfiguriert sind, da Scripte als Download erscheinen.

Phil

so, hab mein skript umgeschrieben

jetzt sieht der fehler nur noch so aus (mit error_reporting):

Fatal error: Can't use function return value in write context in C:\Apache2.2\htdocs\upload.php on line 33

bei zeile 33 steht:

if(isset(copy($tempfile, $target)){

$tempfile=$_FILES['upload']['tmp_name'];

kann ich $target="D:/OnlinePics"; so schreiben?

naja isset kann man eigentlich schon verwenden da es ja true zurückgibt wenn der copy befehl funzt.

und was copy betrifft stimmts normal ja auch da ich von tempfile auf target kopiere und beide sind strings.

moment......... wenn ich target= D/onlinepics sage würde das doch so viel bedeuten das ich tempfile in d/onlinepics umwandle.

ich müsste vermutlich als target noch nen namen angeben oder?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.