Problemet är det att på min dator men win2000 och IIS 5 så funkar scriptet hur bra som hellst.
Men inte på en NT4 och IIS4 burk.
Funkar inte på kompisens dator med sama config som mej.
Kan inte hitta vad det är som jag har lyckats med på min dator men missar på dom andra datorerna
Fel meddeladet är
Warning: Unable to open '\\php4' for reading: No such file or directory in C:\Inetpub\wwwroot\turnerings_rapportering.php on line 16
set_time_limit(60); // make reasonably sure the script does not time out on large files
$path = AddSlashes("C:/Inetpub/wwwroot/screenshoots/"); // assign our path in a form PHP for Windows understands
$source = $Screen;
$source_name = md5(uniqid(rand()));
//echo "Type:$Screen_type<br>Size:$Screen_size<br>Orginal namn:$Screen_name<br>";
if($Point1 != "0" & $Point2 !="0" & $Map != "")
{
if(($source <> "none")&&($source <> "")){ // see if the file exists; non-existing file has name of "none"
if($error <> 1){ // no need to copy a file if directory not write-enabled
$dest = $path.$source_name; // append file name to our path
line 16 --> if(copy($Screen,$dest)){ // copy the file from the temp directory to the upload directory, and test for success
}
}
$URL = "screenshoots/$source_name";
mysql_query("UPDATE game_poll_cell SET pcPointTeam1 = '$Point1', pcPointTeam2 = '$Point2', pcMap = '$Map', pcAuthor = '$LAN_Medlems_ID' WHERE pcID = '$PCID'",$db_con) or DBError($db_con);
header("Location: index.php");
exit;
}
else
{
echo "Error";
exit;
}
}
else
{
echo "Ups..Du har nog glömt något.<br>Kolla att du har fyllt i bana, poäng och screenshoot.<br>Bilden måste vara i JPG format<br>Tryck back för att rätta till.";
exit;
}
[Redigerat av Ryzzen den 22 maj 2001]