Tagged: file

Force download using PHP 0

Force download using PHP

A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can: Download image file Download pdf, flash, mp3 etc....

How to check file is exist or not using php 0

How to check file is exist or not using php

We can check the file is exist or not in the folder usingĀ  file_exists function Here is a simple code to check the presence of the file $add=”images/119.jpg”; if(file_exists($add)) { echo “Yes file is...

how to fetch all files from folder using php 0

how to fetch all files from folder using php

PHP directory listing Some times we have to display the list of all files in a directory.We can do this with the help of php function readdir(). The code to display all the files...