scryed_reaper Posted May 30, 2006 Share Posted May 30, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/10753-autolist-script/ Share on other sites More sharing options...
poirot Posted May 30, 2006 Share Posted May 30, 2006 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\" /] Quote Link to comment https://forums.phpfreaks.com/topic/10753-autolist-script/#findComment-40179 Share on other sites More sharing options...
scryed_reaper Posted May 31, 2006 Author Share Posted May 31, 2006 HeyThe 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. Quote Link to comment https://forums.phpfreaks.com/topic/10753-autolist-script/#findComment-40431 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.