Jump to content

Difference of "Code" and "Script"


jovyjoy

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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! :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...