Jump to content

Faracus

Members
  • Posts

    127
  • Joined

  • Last visited

About Faracus

  • Birthday 05/18/1989

Previous Fields

  • Languages
    HTML, CSS, PHP

Contact Methods

  • Website URL
    http://shackguys.siteburg.com
  • ICQ
    0

Profile Information

  • Location
    A small world in my head.

Faracus's Achievements

Member

Member (2/7)

0

Reputation

  1. Faracus

    Is this possible?

    I'm looking to start up a website where a user can build their own computer, and then check out the stats, the issue is that some parts can be used in multiple slots (e.g cases can support multiple motherboard types) so I'm wondering can I do something like Comer Separated Values in the database, then have PHP check each value individually to check if that is in there. For example this Case can support the following motherboards ATX Micro ATX Baby AT E-ATX So I would like it to only show up when the user has selected one of those types of motherboards.
  2. thanks for that, it was a semi-colon from the previous line. But now I'm getting an error saying that the 64 character database table is not long enough for the final password, how long is it going to be?
  3. it was set to E_ALL, but display errors was set to off, now after turning them on I get a Parse error: syntax error, unexpected T_VARIABLE pointing to the link of my cyrpt, Ihave fixed the . before the salt but it's still giving me this error $encpassword = crypt($password, '$6$rounds=5000$'.$salt);
  4. which is why I updated the code to $encpassword = hash("sha512",$password.$salt); I'll try the crypt function. *EDIT* After switching my code to $encpassword = crypt ($password, '$6$rounds=5000$'$salt); I am still getting the error 500 with still nothing showing in my error logs.
  5. It looks like I have to upgrade my PHP, thanks for the point in the right direction. I thought it was a mod in apache that I needed, not PHP itself. After looking I do have SHA512, but I am still getting the 500 error, and after looking in my error logs there is nothing there about it. I've updated my hash code to:$encpassword = hash("sha512",$password.$salt);
  6. When I try and hash passwords on my site using SHA512 it goes straight in to a 500 error, but as soon as I take the hash out, then it loads properly. $encpassword = hash(sha512($password.$salt)); that is the line of code that is causing the problem. I'm running the web server off my computer for development, I have Apache 2.2.22 with PHP 5.3.14. I've tryed a google search, but SHA512 is a popular checksum for downloads so I get a lot of hits with that.
×
×
  • Create New...