Jump to content


Photo

AutoList Script


  • Please log in to reply
2 replies to this topic

#1 scryed_reaper

scryed_reaper
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 May 2006 - 03:12 AM

Hello,

Im not to skilled in creating my own works but not to bad at combining snippits and examples into a compleate set but with the script i want to make i have no idea were to start.

I want to create a script that will auto-generate a list of links from files in a folder.

eg: image folder is www.x.com/files if their are 25 files in that folder i dont want to manually link each one because i plan on being able to just upload a new file and have it uploaded to my page automaticly.

Should be a simple script, I can make it happen in visual basic without problem but need to read some more php books.

Any help from you gous would be appreceated, thanks!

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 30 May 2006 - 05:11 AM

OK, I'll give you a very general idea:

[a href=\"http://www.php.net/manual/en/ref.filesystem.php\" target=\"_blank\"]http://www.php.net/manual/en/ref.filesystem.php[/a]
[a href=\"http://www.php.net/opendir\" target=\"_blank\"]http://www.php.net/opendir[/a]

A lot of work to do though...

Hooray! 400th post [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]
~ D Kuang

#3 scryed_reaper

scryed_reaper
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 31 May 2006 - 03:01 AM

Hey

The first link worked great i managed to piece together for exactly what i needed, check it at [a href=\"http://www.crymson-rain.ca/wp-content/themes/scarylittle/torrents.php\" target=\"_blank\"]http://www.crymson-rain.ca/wp-content/them...le/torrents.php[/a]

My next mission is going to be very difficult, If with enough trial and error and reading do you think my idea is possible?? ---> I wish to make a script that will go into a folder and see a bunch of files lets say "Book Review" it would be a plain text file with the .txt removed. is php capable of finding the file, posting the file name as the title and then opening and copying the text inside into another collom?

I can easily store the data in arrays and then just dump them into the areas pre-formatted for the display. I figure i should just need to add a bit of code to open the file and copy its contents to make it work.

The point of all this is if i plan on writing alot of things like reviews i dont want to do it while logged into my site php software, i just wanna write on my free time and upload it and have the script post it for me!

Im going to try to do it myself but maybe if you can give your opinion and possibly a link to that type of file opening syntax thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users