Posts

Showing posts from November, 2023

Create user and SEO friendly URL slugs for your website in PHP

Creating user and SEO-friendly URL slugs is a crucial aspect of optimizing your website for both search engines and human visitors. A URL slug, the unique part of a URL that identifies a specific page, plays a significant role in conveying information about your content. Crafting well-structured and descriptive slugs not only aids search engines in understanding your content but also enhances user experience by providing clear and meaningful URLs.

Select or Update only the latest records per group or set in MySQL database table

Image
So I faced this today that I could have keep a column of TinyInt type in a table where I keep multiple records for a, lets say, user or product. Such as, user login history. 

SSH Agent, SSH Keys/Identities, Composer, Repositories in composer.json on Windows 11

So my client shared a repository on a private GitLab platform with me. I have access to the platform and the repo and added SSH key to my account that I generated using PuTTY Gen. I then used TortoiseGit to clone it using my SSH key. It worked as expected and the repository was cloned into the WWW directory of my WAMP server.