Hallo World,
I got some problems with the script down here. It should upload a pic. to the server, but php resend error number 2, like this:
temp file: \php2 (temp file is output from "echo")
Why do php resend "\php2"? Other with same problems?
Bye Ulrik,
/** START SCRIPT
<form enctype="multipart/form-data" method="post" action="<?php echo $PHP_SELF ?>">
Pic.<br>
<input type="File" name="billed" size="25">
<br><br>
<input type="submit" name="submit" value="Upload">
</form>
<?php
if ($submit) {
exec("cp $billed /kunder/ditdomaine/htdocs/images/$billed_navn");
echo "temp file: $billed<br>\n";
echo "file name: $billed_navn<br>\n";
echo "<br>\n";
echo "<img src=images/$billed_navn><br>\n";
}
?>
/** STOP SCRIPT