munk.me.uk forum
May 21, 2012, 05:17:02 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: PHP question  (Read 1278 times)
nobody
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 6


View Profile Email
« on: November 06, 2008, 04:44:50 pm »

Hi,

First of all... sorry but this post isn't about simpleauth SmileySmiley.. i got no problems there

Second of all: I got a question:

 I want to know if there is a way to open directories with php. What I want is do make a downloads section for a website, and I have, like hundreads of files for download, and I want to know if there is a function wich opens folders( the same way  fopen opens files ), or if i can make a php file post the download links automatically when I upload a file into the downloads directory.

If anyone knows the solution, pls help me..  Sad Sad Sad
Logged
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« Reply #1 on: November 07, 2008, 02:56:09 am »

I forget now (been ages++ since I did any PHP at all!), opendir comes to mind for some reason Cheesy

http://php.net/opendir

Yep that's it... Should be able to figure it out hopefully from the examples there and in the 'see also' sections and notes etc etc.
Logged

~ Jez
nobody
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 6


View Profile Email
« Reply #2 on: November 07, 2008, 04:08:21 pm »

sweet Cheesy:D thanks alot  Grin Grin Grin Grin
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!