Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8515781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:14:30+00:00 2026-06-11T05:14:30+00:00

I just installed xampp, so i can test my website offline. Now i get

  • 0

I just installed xampp, so i can test my website offline. Now i get numerous Undefined index or Undefined variable errors, which i know how to fix. Now logging in works online but with xampp it doesn’t work. The code isn’t wrong. I imported the database online to offline. I’ve pin pointed what is wrong but don’t know how to solve it.

here is the code where i test if the login details are correct.

$Blowfish_Pre = '$2a$05$';
$Blowfish_End = '$';
$hashed_password = crypt($password, $Blowfish_Pre . $salt . $Blowfish_End);

//check to see if they match
if ($username==$dbusername&&$hashed_password==$dbpassword){

Offline the echoed $hashed_password for the account is $2a$05$CEDaiUETMOTuZ1tzSX1dW.1rmbYfiu1Hf6jnZyJ5DouQOIHEPwXiW

Online the echoed $hashed_password for the account is

$2J7rPSsTYb1Q

I’ve determined crypt is working differently online then it is offline? Why is this and how can i solve it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:14:31+00:00Added an answer on June 11, 2026 at 5:14 am

    crypt() uses different hash algorithm depending on what the system provides. Starting with PHP 5.3 it “contains its own implementation and will use that if the system lacks of support for one or more of the algorithms.”

    Your offline version does use blowfish as you can see at the start $2a$. Your online version does use some fallback.

    See: http://php.net/manual/en/function.crypt.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed xampp, getting errors all over the place. Want to get rid
So I've just installed XAMPP today, and I noticed that the index.php had a
I just installed XAMPP on Ubuntu and came across this error on my website
I just installed XAMPP on OSX. I can't add folder on the htdocs via
I just installed XAMPP beta with PHP 5.3 on Vista, but installed it in
Just installed Python 2.7.3 on a Windows7 machine. How do I get .py files
Just installed EE everything seems clear however I can't seem to find a solution
I just installed xampp and I brought one of my live sites into it
I have an Apache server installed on my windows machine using XAMPP. Now I'm
I have just installed xampp 1.7.7. I need to know what I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.