Top

PHP Code Snippets Tagged with file

  (10)  
Sort by 
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
17 comment(s)    Score: 8.0    Platform: PHP    Posted by jonesy44 on Nov 30, 2008
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"..
Tags: 44  download  downloads  file  files  gb  jonesy  jonesy44  kb  mg  php  script  size  transfer 
+ 0 likes
7 comment(s)    Score: 6.5    Platform: PHP    Posted by jonesy44 on Aug 16, 2008
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..
Tags: .php  css  directory  file  files  handle  jonesy  jonesy44  list  php  style  while 
+ 0 likes
6 comment(s)    Score: 3.0    Platform: PHP    Posted by jonesy44 on Apr 24, 2008
Script: iBrowser v1.0 Author: Gex Description: iBrowser is a script which browser the server it lies on for files and folders and show them to you with the capability of interactive browsing with..
Tags: browser  file 
+ 0 likes
5 comment(s)    Score: 3.0    Platform: PHP    Posted by Gex on Feb 08, 2008
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..
Tags: file  gunzip  unzip 
+ 0 likes
6 comment(s)    Score: 9.0    Platform: PHP    Posted by Hawkee on Jun 21, 2007
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
3 comment(s)    Score: 3.0    Platform: PHP    Posted by Gex on Apr 16, 2007
The instructions are in the code
Tags: avi  file  gif  jpg  upload 
+ 1 likes
8 comment(s)    Score: 5.3    Platform: PHP    Posted by ZabuzaMomochi on Dec 31, 2006
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 :)
Tags: file  images  php 
+ 0 likes
4 comment(s)    Score: 4.5    Platform: PHP    Posted by Mystery on Feb 20, 2006
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
4 comment(s)    Score: 6.7    Platform: PHP    Posted by dohdoh on Aug 31, 2005
I've found this to be quite useful in handing uploaded files through HTTP. You can use this to move the file from your /tmp folder to a folder on your site that isn't mode 777. The concept is simple...
Tags: copy  file  ftp  http  secure 
+ 1 likes
3 comment(s)    Score: 7.3    Platform: PHP    Posted by Hawkee on Mar 13, 2005
Bottom