Ich habe das Script jetzt mal auf meiem PC getestet.
Bei der gelegenheit: Bitte immer <?php schreiben, das ist die einzige PHP Kennung die immer funktioneirt
Das Script hat funktioniert.
Ich denke ser Fehler liegt in der Pfadangabe:
Die Form passt. Die Angabe hatte ich bei mir aber falsch, da ein Verzeichnis falsch geschrieben war, was in einer leeren Seite resultierte.
Überprüf also den Pfad ggf. mit phpinfo() und korrigiere ihn. Eine andere Fehlerquelle kann es nicht geben.
Jo, Script läuft jetzt endlich, allerdings nicht auf der Seite wo es eigentlich hin soll
Hab das Script jetzt rein interessehalber mal auf meinem PHP5 Host laufen lassen und da funktioniert es einwandfrei. Kann es sein dass event. bestimmte Befehle im Script auf dem Host meiner eigentlichen Website nicht erkannt werden (PHP4 --> phpinfo())?
Danke nochmals für die ganze Hilfe!
A2k
--
The problem with America is stupidity.
I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
----
Arguing with the moderators is like shaking your fist at God. There's nobody there; and if there is, he's not listening. And if he's listening, all you're doing is pissing him off.
Hm, ich habe zwar hier auch PHP 5, aber wir verwenden keine Funktionen die es in deiner PHP 4 Version nicht auch gibt.
Ich weis auch nicht, was error_reporting(2039); genau bedeutet, eventuell fügst du error_reporting(E_ALL); über deinem Script ein, vielleicht gibt dir das Script dann eine zusätzliche Warnung aus.
Ansonnsten sehe ich nicht, wo das Problem liegen könnte, Dateiuploads sind bei dir aktiviert usw.
Interessant. Auf meinem PHP5 Server gehts reibungslos. Auf meinem PHP4 Server hab ich jetzt mal auf alle Fehler anzeigen und bekomm da die Meldung dass 2 Variablen undefiniert sind. Das Script ist aber 1:1 dasselbe wie auf dem PHP5 Server....?
Hier mal die Fehlermeldung:
Notice: Undefined index: upload in /www/www/virtual/armitage2k.net/htdocs/public/scripts/upload/uploader.php on line 22
Notice: Undefined index: file in /www/www/virtual/armitage2k.net/htdocs/public/scripts/upload/uploader.php on line 23
Dabei gehts um die Variablen $status und $dateiname:
Naja, wenn niemanden mehr einfällt was da los ist, ist es auch egal. Aber nochmal vielen herzlichen Dank für die ganze Hilfe!
A2k
--
The problem with America is stupidity.
I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
----
Arguing with the moderators is like shaking your fist at God. There's nobody there; and if there is, he's not listening. And if he's listening, all you're doing is pissing him off.