Directory Listings, list files and subfolder using php
Write a Review
Add to My Favorite
Refer it to Friend
Report Broken Link
Other links owned by this user
Xfunda - get the excellent fundamental, source code on php, CSS, flash, photoshop, xml, .net, vb, C#, asp, javascript.
Category:
Here we are going to design simple image based hit counter to keep track of visitor. We are going to keep record in a text file so we do need any kind of database. We are going to keep whole record in counter.txt file. In the same directory where you putting the PHP file for this counter, create a file 'counter.txt' and CHMOD it to 0777. Initially put 0 in it and save the file. As this counter is image based we are putting our Image in "imgs" folder.
Category:
The following sample of code gives an idea of how to add a blinking flash message at the status bar.First of all we define three variables var message for ‘display message at status bar’, var speed for ‘set time interval to flash text’, and var control to control blinking of message
Category:
Other links at PHP > Tips and Tutorials > File Manipulation
In the previous version of this tutorial I only covered how to paginate a flat file based application. In this updated version, I will discuss some improvements along with pagination for database content as well (specifically, MySQL). I will also cover how to retain any pre-existing query string variables that your application might be using without interfering with our pagination.
Category:
A collection of 8 tips on PHP functions for working with file systems:
Category:
include() is probally one of the most commonly used PHP functions, it allows you to display the content of a file within another page with just one simple line.
There's probally many things you could make use of php includes for, the most common being a template based website where you'll have a number of content pages but only one or two pages with the code for the main layout which is then included into the content pages.
Category:
Xfunda - get the excellent fundamental, source code on php, CSS, flash, photoshop, xml, .net, vb, C#, asp, javascript.
Category:
PHP gives you a variety of functions to read and manipulate directories and directory entries. Like other file-related parts of PHP, the functions are similar to the C functions that accomplish the same tasks, with some simplifications. This tutorial describes how PHP handles directories. You will look at how to create, remove, and read them.
Reading the Contents of a Directory
Deleting the Directory and Its Contents
Creating New Directories
Category: