21. april 2002 - 19:46Der er
17 kommentarer og 1 løsning
indholdet af mappen
Jeg Har jpeg opload på min apache-server . Jeg vil gerne have lavet det så man kan se billederne med det samme på en web side, hvor indholdet af mappen bliver vist i en liste med filnavn ???ELLER???
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
kig på linjen: $file_array = list_dir('data\\'); mappen er altså en undermappe til dette script, der hedder data. Kunne fx ændres til: $file_array = list_dir('billeder\\');
// The path to the directory where you want the // uploaded files to be saved. This MUST end with a // trailing slash unless you use $PATH = ""; to // upload to the current directory. Whatever directory // you choose, please chmod 777 that directory.
$PATH = "uploads/";
// The name of the file field in your form.
$FILENAME = "userfile";
// ACCEPT mode - if you only want to accept // a certain type of file. // possible file types that PHP recognizes includes: // // OPTIONS INCLUDE: // text/plain // image/gif // image/jpeg // image/png
$ACCEPT = "";
// If no extension is supplied, and the browser or PHP // can not figure out what type of file it is, you can // add a default extension - like ".jpg" or ".txt"
$EXTENSION = "";
// SAVE_MODE: if your are attempting to upload // a file with the same name as another file in the // $PATH directory // // OPTIONS: // 1 = overwrite mode // 2 = create new with incremental extention // 3= do nothing if exists, highest protection
// The path to the directory where you want the // uploaded files to be saved. This MUST end with a // trailing slash unless you use $PATH = ""; to // upload to the current directory. Whatever directory // you choose, please chmod 777 that directory.
$PATH = "uploads/";
// The name of the file field in your form.
$FILENAME = "userfile";
// ACCEPT mode - if you only want to accept // a certain type of file. // possible file types that PHP recognizes includes: // // OPTIONS INCLUDE: // text/plain // image/gif // image/jpeg // image/png
$ACCEPT = "";
// If no extension is supplied, and the browser or PHP // can not figure out what type of file it is, you can // add a default extension - like ".jpg" or ".txt"
$EXTENSION = "";
// SAVE_MODE: if your are attempting to upload // a file with the same name as another file in the // $PATH directory // // OPTIONS: // 1 = overwrite mode // 2 = create new with incremental extention // 3= do nothing if exists, highest protection
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.