Search
 
SCRIPT & CODE EXAMPLE
 

PHP

list all files in directory php

$path    = './';
$files = scandir($path);
$files = array_diff(scandir($path), array('.', '..'));
foreach($files as $file){
  echo "<a href='$file'>$file</a>";
}
Comment

PREVIOUS NEXT
Code Example
Php :: php ctype float 
Php :: laravel model relationships with two columns match 
Php :: symfony check:requirements Fatal error: Using $this when not in object context in C:UsersAdmin.symfonycachecheck.php on line 778 exit status 255 
Php :: php registration form and login in same page 
Php :: null php 
Php :: how to get data from laravel api 
Php :: lowercase in array php 
Php :: spatie media library 
Php :: how to hide .php in url 
Php :: ? in php 
Php :: subquery in laravel 
Php :: how to print any string in double quotes in php 
Php :: install phpmyadmin debian 11 
Php :: Turn error log WP 
Php :: how to refresh migration in laravel without losing data 
Php :: php code to submit a radio button value using onclick function 
Php :: php ajouter += ou =+ 
Java :: spigot execute command as console 
Java :: java get next enum 
Java :: Console color text java 
Java :: select a random element from a list java 
Java :: how to get that 1600 sat 
Java :: lombok ignore getter e setter 
Java :: message box in javafx 
Java :: generate random letters and numbers in java 
Java :: spring boot id auto generated 
Java :: How to change progressbar color xml android 
Java :: guess the number java 
Java :: set text size programmatically android 
Java :: how to deselect radio button in java 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =