I want to create a simple page consisting of essentially a text box. It would use PHP, or javascript, or another language, to compute the input and do something. For example, google apples would, well, google apples. Tweet Hello, would, tweet hello, cheezburger would open a predefined set of cheezburger network sites, url apple.com would open the apple website, and so on, and so forth.
For now I want to keep it personnal, offline. My main question is wether I should be using JavaScript (or other client-side), or PHP (or other serverside). I can think of one way to do this in PHP, which would be to run the string through a list of commands and check for a matching one, but I would like to add real-time some features like auto-complete or syntax help. Is there a way for javascript to cycle through files? Is there another client-side script that could do that? Can I do most of these on a PC, without uploading it, only running something like wampserver to run PHP, or not even that if it is JS?
Thanks in advance!
P.S. How do you get the cursor to go directly to the text box like the google home page?
Also, I plan on potentially releasing this later. What would be the most efficient scripting language for running it, considering each user would have their own specific settings for something like "search Apples" or wether they want to open in a new apge or not or anything of the sort?
--------------------
Edit:
What language would I use to run something like this in Windows' native command line environment? (Command Prompt)
For now I want to keep it personnal, offline. My main question is wether I should be using JavaScript (or other client-side), or PHP (or other serverside). I can think of one way to do this in PHP, which would be to run the string through a list of commands and check for a matching one, but I would like to add real-time some features like auto-complete or syntax help. Is there a way for javascript to cycle through files? Is there another client-side script that could do that? Can I do most of these on a PC, without uploading it, only running something like wampserver to run PHP, or not even that if it is JS?
Thanks in advance!
P.S. How do you get the cursor to go directly to the text box like the google home page?
Also, I plan on potentially releasing this later. What would be the most efficient scripting language for running it, considering each user would have their own specific settings for something like "search Apples" or wether they want to open in a new apge or not or anything of the sort?
--------------------
Edit:
What language would I use to run something like this in Windows' native command line environment? (Command Prompt)
Last edited: