Archives directory

Comments on existing version & Suggestions for future versions. If you want a new feature suggest it here. Discussions about beta versions also come in this section.
Post Reply
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Archives directory

Post by bad4u »

Hi Antoine,
as someone asked me for the World of Video script on a private message yesterday, I realized that it has been deleted from the scripts directory - like all scripts after they have been added to the AMC installation file for a while.

Maybe it would be a good idea to copy all scripts from the installation file on an extra directory ("/temp/scripts/archive" or similar) and make them accessible for people who need one of these scripts, because they deleted or edited the original one or simply did not download the file during it was on the server. It's not very practical if you need to download the complete program as .rar archive or reinstall the .exe only to get a script again :)

If you don't like the idea, maybe the scripts from the installation file could be available as a separate .rar archive for download on the website ? Updating this file would only be necessary when a new installation file is available.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,
It is a good idea, but the "update scripts" script should handle that too, so people can still update old scripts.
It is maybe the time for completely changing the "temp/scripts" thing (originally it was just temporary as its name suggests :lol:)
If we add new functions in 3.5.1 anyway people will have to update the program and the script, at the same time we can also change the scripts folder (and silently redirecting the old one to the new one, for compatibility)
Long time ago I created a subdomain "update": http://update.antp.be/
I could add in this a /amc/ folder, in which there could be a "scripts" and a "newscripts" folder for example (first one for the "update scripts" script, second one for people that want to quickly get manually a recent script)
Or a /new folder in the /scripts folder.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

antp wrote:It is a good idea, but the "update scripts" script should handle that too, so people can still update old scripts.
Sure. I'll add it to update_scripts as soon as these scripts are available on a directory. If a script from installation file is missing, it just need to appear on the result list under "additional scripts".
..at the same time we can also change the scripts folder (and silently redirecting the old one to the new one, for compatibility)
Good idea. But is it possible to redirect a directory to another directory when it is opened by a(n unmodified) script and not through a browser ? I don't think so, only the first address will be loaded, right ? If so, it is possible to leave only the new update_script on the old directory and maybe a readme.txt for a while ;)
.., in which there could be a "scripts" and a "newscripts" folder for example (first one for the "update scripts" script, second one for people that want to quickly get manually a recent script)
Or a /new folder in the /scripts folder.
:??: Little bit confused ^^ I like the http://update.antp.be/amc/scripts idea. But you want to have one folder with ALL scripts (for update_scripts; including the scripts from installation file and all latest updates/new scripts) and one folder for latest updates and new scripts only (for manually downloading) ? Does it make sense to have all new files and updates twice (and always need to update both of them) ? It should be easier to have the first folder unchanged (only change the address) and the second folder holds the scripts that are in the installation file (so it needs to be updated only if you update the installation file). But it' late and I'm tired, so maybe I did not understand your intention correctly :p
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Your idea is maybe easier to handle for me (i.e. folder with same scripts as install file), but it would require that your script checks two folders instead of one.
Maybe I could just make a http://update.antp.be/amc/scripts/new page that gives to the user the scripts of the last month or something like that. It would solve the "duplicate" script storage problem (as it would just be a filter page).
I could redirect the well-known /temp/scripts URL to that list, so people and old versions of your script can still use it for new scripts, and keep the new URL for new versions of your script (or people that want to have whole list).
I could also make a http://update.antp.be/amc/scripts/zip page that would create on-the-fly a zip file with the contents of the script folder (having a permanent zip file on the server is really annoying to update).

About redirecting the folder, do not worry, there are ways to make a clean redirect that will be handled by the script like if nothing changed ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

antp wrote:Your idea is maybe easier to handle for me (i.e. folder with same scripts as install file), but it would require that your script checks two folders instead of one.
This is no problem at all. Just need to add an additional TStringList variable then.
I could also make a http://update.antp.be/amc/scripts/zip page that would create on-the-fly a zip file with the contents of the script folder
That sounds interesting as I did not know that it's possible. But it's not very useful here - when all scripts are available for download the user does not need a zip file anymore.

I'd still prefer the two folder structure or perhaps the second folder as a filter page for manual download (I think this would be with an index.html then?).
But do not waste too many thoughts on it. It's your project so you should decide what you like most, I will adapt the update_script to any result then ;)
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

bad4u wrote: That sounds interesting as I did not know that it's possible. But it's not very useful here - when all scripts are available for download the user does not need a zip file anymore.
It is easier than getting them one by one if he wants to download all the files manually ;)
bad4u wrote: But do not waste too many thoughts on it. It's your project so you should decide what you like most, I will adapt the update_script to any result then ;)
ok I'll see what is the easiest to do ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

The more I think about it, the more I like the idea of having just one scripts folder and a dynamic html file that shows current scripts for manual downloading, with switchable filters to make it look clear (maybe latest updates / 1 week , current scripts / 3 month , all scripts).

Damned, seems I'm gonna influence you again, but that was not my intention :D

I searched the net today, but it seems it is not that easy to do when you're not into that subject. Maybe I'll give it a try in future, it seems interesting to me (in general, not only for script s folder).
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

It is not hard to list a folder in PHP. If you want I will send you that PHP script once it is done ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Thanks, although I have no experiences with PHP (yet). Only some basic html kowledge from the past. Seems it's time for some personal updates :p

The problem is just .. time ..

Btw. when using a php script for that, has it to be stored on the same folder ? Can the update script still deal with the folder listing then (as far as I know the folder listing you see on a web browser is done server sided, and it's not possible to get access when an index.html file is stored in the folder) ? Probably best address for an index file would be a higher directory level like http://update.antp.be/ (when you want to list updates for all your other programs on this page, too) or http://update.antp.be/amc (or /moviecatalog).
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

It is possible to tell Apache to ignore a file in its listing.
e.g. : http://antp.be/test you do not see the file http://antp.be/test/hidden.php
(here I used the "IndexIgnore" instruction in a .htaccess file)
Or using URL-rewrite I can say that a request to some URL is redirect to another silently, to the real page.
If there is an index the listing is not possible indeed, so I will not call that page "index" ;)
Post Reply