Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral


  • Rank
  1. Is the password salted client side?
  2. At the sign in page is the password hashed and salted in the browser(client side - is this the right term)? Then passed up to the server and checked against the database? If so is there a more secure way so that password hashing and salting is done on the server? Can the password be hashed and salted at the client side then salted again server side to then be passed on to and checked against the database?
  3. Hi, Sorry if this isn't the right place to post this. I was wondering if anyone would be so kind as to clear up my lack of knowledge about the basics of how the usual sign in and sign up process works? So, say you write a very simple form, where it displays the sign up with just username and password. The person enters their username and password and clicks submit. Then what happens? Does the username and password get sent to the server where the password gets salted and hashed then sent to a database? If so then what happens from when the user enters the username and password for this information to then be used to authenticate the user? Does the script store the username and password in a variable with some instructions to store this information in a database after the password has been salted and hashed? Then when the person uses the sign in and clicks to submit the username and password this is sent to the server checked that the info is correct then the user is sent the appropriate webpage?
  4. Ok thanks. So the variable, and only that variable, to the direct left of the = will be updated with the result of whats happened on the right.
  5. Ok, so if your saying that the result of whats on the right side is stored in the left side (variable + variable will be stored in variable after = sign) then to prove this would you not change 'y = x + y' to 'y+y = x + y' and expect the result of the right side to be stored in the variables on the left side. I would then expect to see (as your going from left to right) x + y = y (5+10=15) so x + y = y + y(5+10= 15 + 15) the echo y would be 30. But this is not the result you get. The result of, 'y+y = x+y' is 15.
  6. Hi, I'm a bit confused as to the example, given on the w3chool website about learning PHP, about 'Global Keywords'. The example is as follows: line1 - <?php line2 - $x = 5; line3 - $y = 10; line4 - line 5 - function myTest() { ​line 6 - global $x, $y; line 7 - $y = $x + $y; ​" " 8 - } ​" " 9 - " " 10 - myTest(); " " 11- echo $y; // outputs 15 " " 12 - ?> To me the example goes as follows: line 2 and 3; you set the variables outside of the function - the global variable. line 6; Then you use the global to [call?] the global variables set in line 2 and 3. line 7; You then use $y twice. Line 7 is the bit that is confusing. How can you assign 10 to y and 5 to x then have 'y = x + y'? To me this would read 10 = 5+10 as you have already assigned y = 10. Can some please explain how you are able to use $y as 10 but then $y is also 15? Would it be correct as to say the variables in line 7 are read from right to left? The global variable has stored the value of y to equal 10. Then inside the function the value stored in the variable x and y are added together to then change/update the value of the variable y to 15 (but only inside that function)? So line 7 is read in the php code from left to right so that the variable y is updated with the new value 15? So does that mean that variables used in the way equivalent to line 7, ie variable = variable + variable will always be read from right to left?


    Many thanks! It works now


    Thanks for the reply. I've saved both HTML and CSS files with UTF-8 and it still doesn't work, it still shows only the HTML when I use my Ipod or Windows.


    Hi, Sorry about my total lack of technical knowledge. What do you save .css files as? Is it UTF-8 or ANSI? Also in the raspbian distro I'm using it has the option of 'Current Locale(UTF-8)' and 'UTF-8' but not for 'ANSI'. The other options are ISO-8859-1, ISO-8859-15, CP1252. And next to the options is another box with CR+LF and you can choose just LF or just CR. I'm trying to use the raspberry pi as a webserver so I can see what my website designs look like on my Apple Ipod. 1. It shows up on the ipod but the css doesn't seem to be linking. 2. I can open it in the Dillo web browser on the raspbian distro and it is working fine. 3. If I type the IP address of my Raspberry PI into my Apple Ipod using the safari browser or my Windows10 using the Edge browser it just loads the basic HTML without any CSS. 4. It works if I just run the files from my local account on Windows, i.e. the same files I have on the raspberry pi but loading them straight from my windows machine and not going through the raspberry pi. I have put everything in the same folder: /var/www I have put a link in the header part of the HTML file for the CSS: <link rel="stylesheet" href="/var/www/smallest.css">
  • Create New...