jovyjoy Posted February 1, 2012 Report Share Posted February 1, 2012 Hi! I am currently in the documentation stage of our Project. I was asked to put the source code, function, file name and tables used because the client asked us to, (it might also serve as their user manual?). Well, I am just an intern and is therefore still new to this kind of business, and so that I will not make a huge mistake, may I just ask from you what the difference of a code and script is so that I will be able to identify which is code and which is script. It might sound stupid but, I am really confused. Thanks! Quote Link to comment Share on other sites More sharing options...
benjaminmorgan Posted February 1, 2012 Report Share Posted February 1, 2012 I'm pretty sure code is any line of code of Javascript, PHP, etc. A script is a set of codes that perform a specific function that you want. Quote Link to comment Share on other sites More sharing options...
jovyjoy Posted February 2, 2012 Author Report Share Posted February 2, 2012 I'm pretty sure code is any line of code of Javascript, PHP, etc. A script is a set of codes that perform a specific function that you want. uhm, so I can't just simply say that code is synonymous to script right? Thanks Quote Link to comment Share on other sites More sharing options...
jstern Posted February 2, 2012 Report Share Posted February 2, 2012 All script is code, but not all code is script Quote Link to comment Share on other sites More sharing options...
jovyjoy Posted February 3, 2012 Author Report Share Posted February 3, 2012 All script is code, but not all code is script ayie, exactly the reason why I got confused in explaining the codes. I got stuck but hopefully, I was able to explain the code for the clients! Thanks guys! Quote Link to comment Share on other sites More sharing options...
benjaminmorgan Posted February 3, 2012 Report Share Posted February 3, 2012 Here is an example of a simple line of code. <?php echo "Hello World"; ?> This is an example of a simple simple simple script. if ($user == $username) { echo "Hello, You are verified."; } else { echo "Sorry, That is not correct."; } The script does something if you need to check something etc. Code is what builds up the script if that helps any. They are pretty much the same though Quote Link to comment Share on other sites More sharing options...
jovyjoy Posted February 6, 2012 Author Report Share Posted February 6, 2012 Here is an example of a simple line of code. <?php echo "Hello World"; ?> This is an example of a simple simple simple script. if ($user == $username) { echo "Hello, You are verified."; } else { echo "Sorry, That is not correct."; } The script does something if you need to check something etc. Code is what builds up the script if that helps any. They are pretty much the same though Thanks! That's a great help! Quote Link to comment Share on other sites More sharing options...
Guest Danish Posted February 6, 2012 Report Share Posted February 6, 2012 Ya, morgan is right and i am agree with him now you got the answer of your question and thanks morgan because you explain in very well way............ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.