windows permissions
Posted: Tue Jun 10, 2003 6:03 pm
buen rollito,
is there anybody who knows to change the permissions on windows xp to upload files?
THX
find something else:
<?php
if ($img1_name == "") {
?>
<html>
<head>
<title>Upload a File</title>
</head>
<!--
Formular: in einem Filepanel kann der Name
des lokalen Files angegeben werden,
das auf den Server hochgeladen werden soll.
-->
<body>
<h1>Upload a File</h1>
<form enctype="multipart/form-data" method="post"
action="<?php echo $PHP_SELF?>">
<p><strong>File to Upload:</strong><br>
<input type="file" name="img1" size="30"></p>
<P><input type="submit" name="submit"
value="Upload File"></p>
</form>
<?php
}
else {
$curdir=getcwd();
exec("/usr/local/info-sys/cgi-bin/phptouch
$SCRIPT_FILENAME $curdir/tmp/$img1_name",$t,$status);
if ($status > 2) { die ("<br>$t[0]"); }
if ($status == 2) {
print("File already exists, will be overwritten");
}
move_uploaded_file("$img1", "./tmp/$img1_name");
exec("phpchown $SCRIPT_FILENAME
$curdir/tmp/$img1_name",$r,$status);
if ($status >1) {
print("<br>$r[0]");
}
?>
<html>
<head>
<title>File Upload!</title>
<body>
<P>You sent: <?php echo "$img1_name"; ?>, a
<?php echo "$img1_size"; ?>
byte file with a mime type of
<?php echo "$img1_type"; ?>.</p>
<?php
}
?>
</body>
</html>
is there anybody who knows to change the permissions on windows xp to upload files?
THX
find something else:
<?php
if ($img1_name == "") {
?>
<html>
<head>
<title>Upload a File</title>
</head>
<!--
Formular: in einem Filepanel kann der Name
des lokalen Files angegeben werden,
das auf den Server hochgeladen werden soll.
-->
<body>
<h1>Upload a File</h1>
<form enctype="multipart/form-data" method="post"
action="<?php echo $PHP_SELF?>">
<p><strong>File to Upload:</strong><br>
<input type="file" name="img1" size="30"></p>
<P><input type="submit" name="submit"
value="Upload File"></p>
</form>
<?php
}
else {
$curdir=getcwd();
exec("/usr/local/info-sys/cgi-bin/phptouch
$SCRIPT_FILENAME $curdir/tmp/$img1_name",$t,$status);
if ($status > 2) { die ("<br>$t[0]"); }
if ($status == 2) {
print("File already exists, will be overwritten");
}
move_uploaded_file("$img1", "./tmp/$img1_name");
exec("phpchown $SCRIPT_FILENAME
$curdir/tmp/$img1_name",$r,$status);
if ($status >1) {
print("<br>$r[0]");
}
?>
<html>
<head>
<title>File Upload!</title>
<body>
<P>You sent: <?php echo "$img1_name"; ?>, a
<?php echo "$img1_size"; ?>
byte file with a mime type of
<?php echo "$img1_type"; ?>.</p>
<?php
}
?>
</body>
</html>