Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic (http://www.programmingforums.org/forum18.html)
-   -   Is this possible????? (http://www.programmingforums.org/showthread.php?t=7856)

c0z420 Jan 6th, 2006 3:35 PM

Is this possible?????
 
Ok so i'm running a site where users can upload guitar "tabs" in with a .txt extesion...so pretty much a simple notepad document. Ok, i was wondering if it is possible to write a program that will.....go to a folder called TABS change all new .txt files extensions to .htm so they can be viewed on the web faster, then move those .txt files to another folder called Archive.

I think i might be going about it wrong in the first place because I think i should be running a database to get all these tabs (.txt files) in order but im not really sure where to start to be honest.

MBirchmeier Jan 6th, 2006 3:43 PM

Yes I believe a man named Alan Turing devised a machine that is capable of doing just that. He expanded upon the work of Charles Babbage's Analytical Engine to create what was then known as a Turing machine, or a computer in modern terms. I believe a computer is capable of exactly the functionality you require.

However if you're looking for a useful answer, please form your question accordingly

-MBirchmeier

para Jan 6th, 2006 3:56 PM

Quote:

Originally Posted by MBirchmeier
Yes I believe a man named Alan Turing devised a machine that is capable of doing just that. He expanded upon the work of Charles Babbage's Analytical Engine to create what was then known as a Turing machine, or a computer in modern terms. I believe a computer is capable of exactly the functionality you require.

However if you're looking for a useful answer, please form your question accordingly

-MBirchmeier

You're such a help, thanks for posting!

Quote:

Originally Posted by c0z420
Ok so i'm running a site where users can upload guitar "tabs" in with a .txt extesion...so pretty much a simple notepad document. Ok, i was wondering if it is possible to write a program that will.....go to a folder called TABS change all new .txt files extensions to .htm so they can be viewed on the web faster, then move those .txt files to another folder called Archive.

I think i might be going about it wrong in the first place because I think i should be running a database to get all these tabs (.txt files) in order but im not really sure where to start to be honest.

If you're using PHP check out the copy() function: http://us2.php.net/manual/en/function.copy.php

c0z420 Jan 6th, 2006 6:00 PM

Quote:

Originally Posted by MBirchmeier
Yes I believe a man named Alan Turing devised a machine that is capable of doing just that. He expanded upon the work of Charles Babbage's Analytical Engine to create what was then known as a Turing machine, or a computer in modern terms. I believe a computer is capable of exactly the functionality you require.

However if you're looking for a useful answer, please form your question accordingly

-MBirchmeier


Why do I even ask on here....i get 5 smartass comments to 1 helpful answer, thanks for nothing.

OpenLoop Jan 6th, 2006 6:10 PM

c0z420, c'mon man take it easy..

Why don't you post some more details about how the data will be received, the nature of the data itself, and what do you want for output. Maybe then, you'll get more helpful answers.

Ooble Jan 6th, 2006 7:53 PM

My suggestion: learn PHP and SQL, get a server that runs PHP and MySQL, and use a database. It'll be much less hassle in the long run. Remember this: a truly lazy person thinks ahead. ;)

MrMan9879 Jan 6th, 2006 9:31 PM

Quote:

Originally Posted by OpenLoop
c0z420, c'mon man take it easy..

Why don't you post some more details about how the data will be received, the nature of the data itself, and what do you want for output. Maybe then, you'll get more helpful answers.

I actually kind of agree with him, just because someone accidently breaks the rules, you don't have to just give them a pointless answer. Sometimes people just search on google for a programming forum and find this one and ask the question that they've been dying to ask. If you just give them a stupid answer, that obviously isn't helping them... which i think was the original intent of these forums.

OpenLoop Jan 6th, 2006 11:22 PM

Quote:

Originally Posted by MrMan9879
I actually kind of agree with him, just because someone accidently breaks the rules, you don't have to just give them a pointless answer. Sometimes people just search on google for a programming forum and find this one and ask the question that they've been dying to ask. If you just give them a stupid answer, that obviously isn't helping them... which i think was the original intent of these forums.

You have a valid point, but still, he needs to rephrase his question and reveal more details.

c0z420 Jan 6th, 2006 11:42 PM

Quote:

Originally Posted by c0z420
Ok so i'm running a site where users can upload guitar "tabs" in with a .txt extesion...so pretty much a simple notepad document. Ok, i was wondering if it is possible to write a program that will.....go to a folder called TABS change all new .txt files extensions to .htm so they can be viewed on the web faster, then move those .txt files to another folder called Archive.

I think i might be going about it wrong in the first place because I think i should be running a database to get all these tabs (.txt files) in order but im not really sure where to start to be honest.


I dont understand whats so hard about this question to understand. Here we go again.

I have a website.
People upload Notepad files.. ex: deftones.txt
They reside into my uploads folder on my webserver.

I want either a program or code that will take this new text file...either enter it into the database or put it under a specific BAND in the database. And i want this TEXT FILE to be viewed by users after they submit them to my server. So more then likely converting the TEXT file to a HTML file so they can view it in their browser.

Anymore questions???

Ooble Jan 7th, 2006 8:01 AM

Check out a server-side scripting language, such as PHP. I suggest picking up PHP and MySQL Web Development by Welling and Thomson.


All times are GMT -5. The time now is 6:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC