PHP Code Snippets Tagged with file
(10)
This script can be added to a website to check if a port on a specified website/ip is open or not. my use for this was for checking with my uTorrent port.
In basic, if a socket is openned, it has connected...
+ 4 likes
Okay well! this page is real helpfull if you want to display a bunch of downloads without needing an sql table, and without having to update the index page
Paste this into a file "index.php"..
+ 0 likes
Ok, so this short php script is real usefull for if you have loads of subdirectories of completely different websites like i do. these can be webs for sale, or just random websites *shrugs* it's for your..
+ 0 likes
This will extract a zip file via PHP. Just be sure to set the $file and $path variables. $file represents the zip file name which may or may not contain a path. $path represents the directory to extract..
+ 0 likes
This code allows u to call the function which is listfiles(); from anywhere from the script and list the files in the directory of the script and sort them in a table with their properties.
Tags:
file
+ 0 likes
This function will grab a list of files/images/etc from a directory and list them as links to that file. Can be very handy, especially with images/image hosts :)
+ 0 likes
This function takes in a directory path and recursively searches through the directory structure and returns all files in those directories. The file list is returned in an array.
<br>
<br>
This..
Tags:
file
+ 0 likes





