Jump to content

AutoList Script


scryed_reaper

Recommended Posts

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!
Link to comment
Share on other sites

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\" /]
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.