View Single Post
ישן 23-10-05, 14:20   # 5
OSR
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 612

OSR לא מחובר  

שניהה אני לא מבין... בניתי את המערכת ככה ולא הבנתי איפה רשום לי את הכתובת של התמונה שהעלתי:

index.php

PHP קוד:
<?php
<form enctype="multipart/form-data" action="url.php" method="post">
<
input type="hidden" name="MAX_FILE_SIZE" value="1000">
<
b>
Upload this file:<br> <input name="userfile" type="file"><BR>
<
input type="submit" value="upload">
?>
url.php

PHP קוד:
<?php 
if (is_uploaded_file($userfile)) {
   
copy($userfile"/place/to/put/uploaded/file");
} else {
   echo 
"Possible file upload attack: filename '$userfile'.";
}
?>
נגיד אני מעלה תמונה? איפה זה רושם לי את הכתובת שלה?
  Reply With Quote