laat maar ni nodig vriend eeft al gdn

Gestart doorHabgallery3 reacties27 weergaven

4 berichten · pagina 1 van 1

Habgallery

Lid · Topicstarter

Berichten
631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hallo ,
ik zou even willen vragen of iemand hier zo een tut kan maken en alle bestande ervan hier zetten hoe ik een image uplaod kan maken (andere dingen zoals .rar enzo mag ook

mvg habgallery
0
Berichten
221
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik kan wel maken
0
Berichten
221
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
alles heb ik erin gezet wat je kan instellen biggrin
upload.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<body>
      <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>" method="post" name="fileForm" enctype="multipart/form-data">
        File to upload:
        <table>
          <tr><td><input name="upfile" type="file"></td></tr>
          <tr><td><input type="submit" name="submitBtn" value="Upload"></td></tr>
        </table>  
      </form>
[COLOR= #0000BB]<?php[/COLOR]    
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submitBtn[/COLOR][COLOR= #007700]])){[/COLOR]

        [COLOR= #FF8000]// hier waar hij naar moet uploaden dus file zoals: /images/[/COLOR]
        [COLOR= #0000BB]$target_path[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"c:"[/COLOR][COLOR= #007700];[/COLOR]

        [COLOR= #FF8000]// [/COLOR]
        [COLOR= #0000BB]$target_path[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$target_path[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]upfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]);[/COLOR] 

        [COLOR= #FF8000]// [/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/move_uploaded_file"]move_uploaded_file[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]upfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]tmp_name[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$target_path[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"je plaatje "[/COLOR][COLOR= #007700].[/COLOR]  [URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]upfile[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]).[/COLOR] 
                 [COLOR= #DD0000]"is succesvol verzonden of geupload "[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"fout bericht"[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
?>
</body>


©

hoeveel punten geef je eigenlijk ? yummie
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Niks dus.. swhip
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren