Jump to content

benanamen

Members
  • Posts

    2,134
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by benanamen

  1. Here you go

    • Line 1 enables the rewrite engine.
    • Line 2 contains the RewriteRule directive:
    • The pattern ^old.html$ matches the page which starts (^) and ends ($) with old.htm.
    • The substitution is the new.htm page.
    • The flag [NC] means the pattern is not case-sensitive.
    • When a user tries to access the old page, the server shows the contents from the new.htm page instead.

     

    RewriteEngine On
    RewriteRule ^old.htm$ new.htm [NC]

     

  2. You dont need to re-install mysql. Here is what you do...

    For Laragon with MySQL 8 with no password

    Login to the laragon mysql from the console (Click the Terminal button on the Laragon GUI interface)

    mysql -u root -p

    Just hit enter when it prompts for password

    Then to set the password, in this case, to "secret"

    ALTER USER 'root'@'localhost' IDENTIFIED BY 'secret';


    To go back to no password with MySQL8

    ALTER USER 'root'@'localhost' IDENTIFIED BY '';

     

  3. You are trying to connect as a user other than the default root account. (122387_chapterofhate@localhost) The account you are connecting with does not have the permissions needed to do what ever it is you are trying to do.

    Laragon is a local development wamp. There is really no reason you need to be creating and using any other MySQL users except maybe for learning about permissions.

  4. 46 minutes ago, LeonLatex said:

    That problem was fixed, but brought some new ones in after a few hours.

    You will need to provide details of problems.

     

    47 minutes ago, LeonLatex said:

    does not what it should do: Direct and manage traffic

    Are you trying to use this as a production server? Laragon is intended for development only. Any "traffic" should only be coming from you while testing your code. Managing and directing your requests is handled by Apache and your code.

  5. 1 hour ago, cyberRobot said:

    I switched from Perl to PHP in 2001. Of course, I keep forgetting it's been that long.

    Interesting. I came from Perl as well around the same time. PHP was at version 3 with a .php3 extension.

  6. You should be using Prepared Statements. Never use variables in your query. Never trust user supplied data.

    Nevertheless, does this look right to you?
     

    VALUES (`$money`,`mins`,`wassim`)";

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.