Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 6th, 2006, 3:35 PM   #1
c0z420
Newbie
 
Join Date: Dec 2005
Location: Dubuque, IA
Posts: 25
Rep Power: 0 c0z420 is on a distinguished road
Send a message via MSN to c0z420 Send a message via Yahoo to c0z420
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.
c0z420 is offline   Reply With Quote
Old Jan 6th, 2006, 3:43 PM   #2
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 3 MBirchmeier is on a distinguished road
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
MBirchmeier is offline   Reply With Quote
Old Jan 6th, 2006, 6:00 PM   #3
c0z420
Newbie
 
Join Date: Dec 2005
Location: Dubuque, IA
Posts: 25
Rep Power: 0 c0z420 is on a distinguished road
Send a message via MSN to c0z420 Send a message via Yahoo to c0z420
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.
c0z420 is offline   Reply With Quote
Old Mar 21st, 2006, 3:18 AM   #4
cypher_soundz
Newbie
 
cypher_soundz's Avatar
 
Join Date: Jan 2005
Posts: 15
Rep Power: 0 cypher_soundz is on a distinguished road
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
LOL ! thanks i needed that, really made me laugh

cyph
cypher_soundz is offline   Reply With Quote
Old Jan 6th, 2006, 3:56 PM   #5
para
Programmer
 
Join Date: Dec 2005
Posts: 65
Rep Power: 3 para is on a distinguished road
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
para is offline   Reply With Quote
Old Jan 6th, 2006, 6:10 PM   #6
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
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.
OpenLoop is offline   Reply With Quote
Old Jan 6th, 2006, 9:31 PM   #7
MrMan9879
Programmer
 
MrMan9879's Avatar
 
Join Date: Sep 2005
Location: Nanaimo, BC, Canada
Posts: 97
Rep Power: 0 MrMan9879 is an unknown quantity at this point
Send a message via MSN to MrMan9879
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.
MrMan9879 is offline   Reply With Quote
Old Jan 6th, 2006, 11:22 PM   #8
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
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.
OpenLoop is offline   Reply With Quote
Old Jan 6th, 2006, 7:53 PM   #9
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 6th, 2006, 11:42 PM   #10
c0z420
Newbie
 
Join Date: Dec 2005
Location: Dubuque, IA
Posts: 25
Rep Power: 0 c0z420 is on a distinguished road
Send a message via MSN to c0z420 Send a message via Yahoo to c0z420
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???
c0z420 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:48 AM.

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