Archiv verlassen und diese Seite im Standarddesign anzeigen : phpauction/ pro auction
bekomme immer diesen fehler-->pro auktion sell.php
Warning: copy(/home/www/web728/html/uploaded/30129_2.jpg): failed to open stream: No such file or directory
bitte bitte komme nicht weiter bekomme keine bilder hochgeladen
in die auktion :confused:
hmm,
wilkommen im forum ;)
zeig mal bitte mehr code, vielleicht 10-15 zeilen drüber und 5 drunter ... du bekommst doch eine zeilennummer mit ausgegeben, oder?
Warning: copy(/home/www/web728/html/uploaded/30129_2.jpg): failed to open stream: No such file or directory
gibt es die Datei?
Hast du Leserecht auf Datei und Ordner?
Offe
Warning: copy(/home/www/web728/html/uploaded/30130.jpg): failed to open stream: No such file or directory in /kunden/webseiten/auction/sell.php on line 262
Warning: copy(/home/www/web728/html/uploaded/30130_2.jpg): failed to open stream: No such file or directory in /kunden/webseiten/auction/sell.php on line 274
Warning: copy(/home/www/web728/html/uploaded/30130_3.jpg): failed to open stream: No such file or directory in /kunden/webseiten/auction/sell.php on line 287
komme nicht weiter ...................
ja die datei / ordner gibt es --<<uploaded hat die rechte 777
ja denn ordner gibt es uploaded und der hat die rechte 777
if ($mode=="recall")
{
if (isset($sessionVars["SELL_file_uploaded"]))
{
if ($sessionVars["SELL_pict_url"] <> "")
{
$userfile = "";
if (file_exists($image_upload_path.$sessionVars["SELL_pict_url"]))
{
unlink($image_upload_path.$sessionVars["SELL_pict_url"]);
}
}
if ($sessionVars["SELL_pict_url2"] <> "")
{
$userfile2 = "";
if (file_exists($image_upload_path.$sessionVars["SELL_pict_url2"]))
{
unlink($image_upload_path.$sessionVars["SELL_pict_url2"]);
}
}
if ($sessionVars["SELL_pict_url3"] <> "")
{
$userfile3 = "";
if (file_exists($image_upload_path.$sessionVars["SELL_pict_url3"]))
{
unlink($image_upload_path.$sessionVars["SELL_pict_url3"]);
}
}
unset($sessionVars["SELL_file_uploaded"]);
$sessionVars["SELL_pict_url"] = $sessionVars["SELL_pict_url_original"];
putSessionVars();
}
$title = $sessionVars["SELL_title"];
$description = $sessionVars["SELL_description"];
$pict_url = $sessionVars["SELL_pict_url_original"];
$atype = $sessionVars["SELL_atype"];
$iquantity = $sessionVars["SELL_iquantity"];
$minimum_bid = $sessionVars["SELL_minimum_bid"];
$with_reserve = ($sessionVars["SELL_with_reserve"])?"ja":"nein";
$payment = $sessionVars["SELL_payment"];
$duration = $sessionVars["SELL_duration"];
$country = $sessionVars["SELL_country"];
$location_zip = $sessionVars["SELL_location_zip"];
$shipping = $sessionVars["SELL_shipping"];
$international = ($sessionVars["SELL_international"])?"ja":"nein";
$category1 = $sessionVars["SELL_category"];
$imgtype = $sessionVars["SELL_imgtype"];
$zustand = $sessionVars["SELL_zustand"];
$fett = $sessionVars["SELL_fett"];
$marker = $sessionVars["SELL_marker"];
$topkat = $sessionVars["SELL_topkat"];
$bild2 = $sessionVars["SELL_bild2"];
$bild3 = $sessionVars["SELL_bild3"];
$artnr = $sessionVars["SELL_artnr"];
$fett_preis = $sessionVars["SELL_fettpreis"];
$marker_preis = $sessionVars["SELL_markerpreis"];
$topkat_preis = $sessionVars["SELL_topkatpreis"];
$bild2_preis = $sessionVars["SELL_bild2preis"];
$bild3_preis = $sessionVars["SELL_bild3preis"];
$buy_now = $sessionVars["SELL_buy_now"];
}
else
{
// auction type
reset($auction_types);
list($atype,) = each($auction_types);
// quantity of items
$iquantity = 1;
// country
// BM 28.2.
//reset($countries);
//list($country,) = each($countries);
// shipping
$shipping = 1;
// image type
$imgtype = 1;
$with_reserve = "nein";
}
}
// Oder Aktion = 'first' / Erstaufruf++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
elseif ($action=='first')
{
unset($auction_id);
$ERR = "ERR_".CheckSellData();
// if no other errors - handle upload here
if (!$$ERR)
{
unset($file_uploaded);
// Auktions-ID generieren
$auction_id = generate_id();
if ( $userfile <> "" )
{
$inf = GetImageSize ( $userfile );
if ($userfile2 <> "")
$inf2 = GetImageSize ( $userfile2 );
if ($userfile3 <> "")
$inf3 = GetImageSize ( $userfile3 );
$er = false;
// make a check
if ($inf)
{
$inf[2] = intval($inf[2]); // check for uploaded file type
if ($userfile2 <> "")
$inf2[2] = intval($inf2[2]);
if ($userfile3 <> "")
$inf3[2] = intval($inf3[2]);
if ( ($inf[2]!=1) && ($inf[2]!=2) )
{
$er = true;
$ERR = "ERR_602";
}
else
{
// check for file size
if ( intval($userfile_size)>$MAX_UPLOAD_SIZE )
{
$er = true;
$ERR = "ERR_603";
}
}
if ($userfile2 <> "")
{
if ( ($inf2[2]!=1) && ($inf2[2]!=2) )
{
$er = true;
$ERR = "ERR_602_2";
}
else
{
// check for file size
if ( intval($userfile2_size)>$MAX_UPLOAD_SIZE )
{
$er = true;
$ERR = "ERR_603_2";
}
}
}
if ($userfile3 <> "")
{
if ( ($inf2[2]!=1) && ($inf2[2]!=2) )
{
$er = true;
$ERR = "ERR_602_3";
}
else
{
// check for file size
if ( intval($userfile3_size)>$MAX_UPLOAD_SIZE )
{
$er = true;
$ERR = "ERR_603_3";
}
}
}
}
else
{
$ERR = "ERR_602";
$er = true;
}
if (!$er)
{
// Bild 1 wirklich speichern
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id.$ext;
if (file_exists($fname))
unlink ($fname);
copy ($userfile, $fname);
$uploaded_filename = $auction_id.$ext;
$file_uploaded = true;
// Bild 2 wirklich speichern
if ($userfile2 <> "")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_2".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile2, $fname );
$uploaded_filename2 = $auction_id."_2".$ext;
$file_uploaded = true;
}
// Bild 3 wirklich speichern
if ($userfile3 <> "")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_3".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile3, $fname );
$uploaded_filename3 = $auction_id."_3".$ext;
$file_uploaded = true;
}
}
else
{
// Fehler!!
unset($file_uploaded);
$userfile2 = "";
$userfile3 = "";
}
}
else
{
unset($file_uploaded);
$userfile2 = "";
$userfile3 = "";
}
}
zeig mal bitte mehr code, vielleicht 10-15 zeilen drüber und 5 drunter ... du bekommst doch eine zeilennummer mit ausgegeben, oder?
meinte er natürlich von der Datei sell.php von ca. Linie 250 bis 270
irgendwie bin ich heute immer zu spät :(
Offe
}
}
}
}
else
{
$ERR = "ERR_602";
$er = true;
}
if (!$er)
{
// Bild 1 wirklich speichern
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id.$ext;
if (file_exists($fname))
unlink ($fname);
copy ($userfile, $fname);
$uploaded_filename = $auction_id.$ext;
$file_uploaded = true;
// Bild 2 wirklich speichern
if ($userfile2 <> "")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_2".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile2, $fname );
$uploaded_filename2 = $auction_id."_2".$ext;
$file_uploaded = true;
}
// Bild 3 wirklich speichern
if ($userfile3 <> "")
{
$ext = ($inf[2]==1)?".gif":".jpg";
*ZUSAMMENFÜHR*
@julia79
achte bitte darauf, dass du den antworten-button richtig triffst....
hier nochmal
// check for file size
if ( intval($userfile3_size)>$MAX_UPLOAD_SIZE )
{
$er = true;
$ERR = "ERR_603_3";
}
}
}
}
else
{
$ERR = "ERR_602";
$er = true;
}
if (!$er)
{
// Bild 1 wirklich speichern
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id.$ext;
if (file_exists($fname))
unlink ($fname);
copy ($userfile, $fname);
$uploaded_filename = $auction_id.$ext;
$file_uploaded = true;
// Bild 2 wirklich speichern
if ($userfile2 <> "")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_2".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile2, $fname );
$uploaded_filename2 = $auction_id."_2".$ext;
$file_uploaded = true;
}
// Bild 3 wirklich speichern
if ($userfile3 <> "")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_3".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile3, $fname );
$uploaded_filename3 = $auction_id."_3".$ext;
$file_uploaded = true;
}
}
else
{
// Fehler!!
unset($file_uploaded);
$userfile2 = "";
$userfile3 = "";
}
}
else
{
unset($file_uploaded);
$userfile2 = "";
$userfile3 = "";
}
}
}
@julia79
du DARFST auch die php-tags des forums nutzen. :teach:
mmmhhh bekomme ich keine antwort ( hilfe ) ??????
:mad:
bekomme bei php auction ( pro auction ) die bilder nicht hochgeladen
wenn ich eine auction online stellen möchte bekomme immer
....... fehler fehler
hier die fehlermeldung
Warning: copy(/home/www/web728/html/uploaded/30130.jpg): failed to open stream: No such file or directory in /kunden/webseiten/auction/sell.php on line 262
Warning: copy(/home/www/web728/html/uploaded/30130_2.jpg): failed to open stream: No such file or directory in /kunden/webseiten/auction/sell.php on line 274
Warning: copy(/home/www/web728/html/uploaded/30130_3.jpg): failed to open stream: No such file or directory in /kunden/webseiten/auction/sell.php on line 287
Und was steht in Zeile 262, 274 und 287? Vielleicht da noch mal den Pfad anpassen und nach Rechten sehen..
hmm,
ich weiß, was in den zeilen steht. julia, tue mir einen gefallen, benutze aussagekräftige subjects ...
wir konnten dir letztlich schon nicht helfen, bist du sicher, daß die dateien dort existieren?
und was muss ich da ändern ??
$er = true;
}
if (!$er)
{
// Bild 1 wirklich speichern
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id.$ext;
if (file_exists($fname))
unlink ($fname);
copy ($userfile, $fname);
$uploaded_filename = $auction_id.$ext;
$file_uploaded = true;
// Bild 2 wirklich speichern
if ($userfile2 <> "none")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_2".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile2, $fname );
$uploaded_filename2 = $auction_id."_2".$ext;
$file_uploaded = true;
}
// Bild 3 wirklich speichern
if ($userfile3 <> "none")
{
$ext = ($inf[2]==1)?".gif":".jpg";
$fname = $image_upload_path.$auction_id."_3".$ext;
if ( file_exists($fname) )
unlink ($fname);
copy ( $userfile3, $fname );
$uploaded_filename3 = $auction_id."_3".$ext;
$file_uploaded = true;
}
}
else
{ sind die php-tags des forums eigentlich so schwer zu finden?
Original geschrieben von julia79
mmmhhh bekomme ich keine antwort ( hilfe ) ??????
übe dich gefälligst mal in ein bisschen mehr geduld, und mach nicht einfach einen neuen thread zum selben thema auf!
ich habe die beiden threads jetzt mal zusammengeführt.
(falls du jetzt keine brauchbaren antworten mehr bekommst, weil da keiner mehr durchblickt ... selber schuld.)
schmalle 02-02-2004, 14:36 hab dir mal die php-tags gespendet.
vermutlich musst du diese var: $image_upload_path ändern. aber das sieht mir verdammt nach einem chaos script aus!
der thread könnte auch noch hilfreich sein
http://www.php-resource.de/forum/showthread.php?s=&threadid=21073&highlight=auction
kann es sein, dass phpauction nicht viel taucht :rolleyes:
schmalle 02-02-2004, 14:54 @julia kannst du lesen? die rote schrift in meiner signatur. ich dachte eigentlich, dass das eindeutig genug ist. wenn ich für dich ausserhalb des forums arbeiten soll, kann ich dir gerne ein angebot zukommen lassen. ich hoffe du bist gut bei kasse :)
Versuch doch mal folgendes :
if ($userfile2 <> "none")
In der oberen Zeile das none rausnehmen, sieht dann so aus:
if ($userfile2 <> "")
Das ganze für jeden bildupload !
geofrey55 08-03-2004, 12:15 hallo julia
konntest du das problem lösen?
gruss aus korschenbroich
raphael
schmalle 08-03-2004, 12:18 @geo, gibt es einen bestimmten grund für dein posting?
geofrey55 08-03-2004, 12:24 hallo schmalle !
danke für die schnelle reaktion. habe den hinweis von trute ausprobiert - problem gelöst !
raphael
Original geschrieben von schmalle
@geo, gibt es einen bestimmten grund für dein posting?
er hat wohl das selbe Problem und hofft auf eine einfache Lösung ala Julia :D
geofrey55 08-03-2004, 12:32 ... und im besonderen marc ! wer lesen kann ist klar im vorteil. - aber entschuldigt ich bin schon weit über vierzig ! habt also verständnis für einen bei dessen geburt das wort fernseher noch nicht zum sprachschatz von otto normalverbraucher gehörte !
werd mich bessern !
raphael
|