imagine pentru upload: admin_logo.gif size: 1665 bytes

imagine dupa upload(pe server) : admin_logo.gif size: 1692 bytes 
si nici nu o mai pot vedea in browser 

daca in /etc/php.ini   upload_tmp_dir nu e specificat .. php-ul
foloseste /tmp ,nu ?


php 4.0.4pl1
apache 1.3.12
rh 7.0

eu zic ca am scris bine codul:

/*upload.html */

 <html>
     <head>
     <title>Upload a File</title>
     </head>

     <body>

     <h1>Upload a File</h1>

     <form enctype="multipart/form-data" method="post"
action="do_upload.php">

     <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>
     </body>

</html>


/* do_upload.php"
 <?
             
     if ($img1_name != "") {
             
             copy("$img1", "/tmp/$img1_name") 
                     or die("Couldn't copy the file!");  
             
     } else {
             
             die("No input file specified");
     }

     ?>

     <html>
     <head>
     <title>Successful File Upload!</title>
     <body>

     <h1>Success!</h1>

     <P>You sent: <? echo "$img1_name"; ?>, a <? echo "$img1_size"; ?> 
     byte file with a mime type of <? echo "$img1_type"; ?>.</p>

     </body>
     </html>




-- 
 Boni Ion             
 Intersat-Telecom / www.intersat-telecom.ro / 
 Constanta, Romania, Europe
 Phone: +40 41 691230
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui