MD
KPCKevin Powell - Community
•Created by MD on 6/13/2024 in #resources
color tool that can tell contrast following standards
https://contrast-grid.eightshapes.com/
Should help with some color picking
1 replies
KPCKevin Powell - Community
•Created by MD on 6/6/2024 in #ui-ux
Deciding on a color palette and also what mobile phone screen size to start with
9 replies
KPCKevin Powell - Community
•Created by MD on 5/13/2024 in #back-end
How do you properly close a php session before closing the browser?
say the user closes your site (tab or browser) and you want the session to be destroyed because you dont want an active session when the user turns their browser back on and goes to your page. How do you detect them leaving your site to close the active session?
47 replies
KPCKevin Powell - Community
•Created by MD on 5/3/2024 in #back-end
The best way to implement a "Remember Me" function for login in php
I'm currently working on a remember me functionality for my login page and i know the common way is to use
setcookie()
then $_COOKIE['<some field here>]
and assign a value and check that to login, but is there a better way or a safer way?57 replies
KPCKevin Powell - Community
•Created by MD on 4/9/2024 in #back-end
not seeing any errors yet the code isn't working with login and register
it seems my login and register pages are error-ed and the database isn't getting the data but im not seeing errors. Any ideas?
90 replies
KPCKevin Powell - Community
•Created by MD on 3/29/2024 in #resources
Bash Script to check for a vulnerable version of `xz` utils
A supply chain attack happened to opensuse recently and it was due to a malicious code inside the
xz
utils github. Please read up on the issue with your respective repo and backup the version to a previous if not patched. Here is a script to check if your system is vulernable. Shared from a friend in my linux discord.
1 replies
KPCKevin Powell - Community
•Created by MD on 3/29/2024 in #back-end
Handling sessions with php question
For my project id like to start the session after they are successfully logged in and transferred to their userpage. I'm curious though how to store the session like do I use the
user_id
assigned to some other id or something in order to keep track of it being active. I tried reading the php docs on it but I got a bit confused. Any insight on handling sessions is most welcomed. I'll share my code for my login page so others can let me know if im doing this wrong. Thanks!15 replies
KPCKevin Powell - Community
•Created by MD on 3/26/2024 in #back-end
dynamic file names for php like in js can it be done?
you know how in js you can have file names like
[id].js
where id
is a field from a database for pages that are changing based on what is pulled from the db? Can you do the same for php like [user_id].php
for a building something like a individual user page?19 replies
KPCKevin Powell - Community
•Created by MD on 3/19/2024 in #back-end
Database setup for a simple login and registration page in terms of having a "remember me" function
I'm not sure how to setup my database to have a "Remember me" function in order to handle bypassing login. I know you use a cookie with a encoded string and other stuff but the database setup itself is a bit odd. I'm using a Postgres database and so far here are the fields I thought of...
I'm thinking I'll need either a separate table for generating a token for a Remember Me function or as an additional field in this User table. Not sure since I've never implemented one before. Any suggestions would be great! Thanks!
31 replies
KPCKevin Powell - Community
•Created by MD on 3/18/2024 in #resources
go template library for a more FE setup
1 replies
KPCKevin Powell - Community
•Created by MD on 3/10/2024 in #os-and-tools
Docker not working with SQLite database
I can't get docker to work with my sqlite database and ive tried a bunch of things with changing of files and such and it just doesnt work. My setup is php with apache. Here is my
docker-compose
file...
here is my dockerfile...
7 replies
KPCKevin Powell - Community
•Created by MD on 3/9/2024 in #back-end
When to use htmlspecialchars vs filter_input ?
im confused when using htmlspecialchars vs filter_input for preventing bad input into php. I have got the hang of using prepared queries but I've not noticed when using the other two mentioned functions. Is htmlspecialchars mainly for outputting html to prevent XSS and is filter_input for handling the user input to prevent it from going through to cause harm?
11 replies
KPCKevin Powell - Community
•Created by MD on 3/6/2024 in #resources
open full stack
Not sure how useful this will be but it looks useful for understanding fullstack. Trigger warning: react is used
https://fullstackopen.com/en/
1 replies
KPCKevin Powell - Community
•Created by MD on 3/2/2024 in #back-end
using namespaces and file paths in php properly
having mutiple issues with file paths and using namespaces and not sure why it seems they wont load.
here is code
112 replies
KPCKevin Powell - Community
•Created by MD on 3/1/2024 in #os-and-tools
Error with volume not mounting docker compose
10 replies
KPCKevin Powell - Community
•Created by MD on 2/12/2024 in #back-end
Sanitize user input to avoid XSS attacks Question
I have username and password for login and want to avoid the cross site scripting. I read that using
htmlspecialchars()
is the way to go but not sure what to do after that. Any ideas?1670 replies
KPCKevin Powell - Community
•Created by MD on 2/8/2024 in #back-end
PHP todo app database setup question
I have a some far a table in mind for username and passwords but not sure how to link their "tasks" to my database in order to save them for when they logout and later re login. Any tips?
544 replies
KPCKevin Powell - Community
•Created by MD on 1/27/2024 in #os-and-tools
Docker dev containers or ways to use docker without installing development tools on host machine
I've heard dev containers with vscode can make isolated dev environments but it's still a little new. I'm curious how to use docker (with compose as well) in order to make dev environments where I dont have to install various programming languages and their tools on my machine. Anyone have experience with this?
2 replies
KPCKevin Powell - Community
•Created by MD on 1/26/2024 in #back-end
Setting up a php developer environment using Docker
How do you setup a php developer environment using docker along with a database, and node since ill be doing a small practice fullstack project?
17 replies
KPCKevin Powell - Community
•Created by MD on 1/25/2024 in #ui-ux
tools that might help overcome design, color, and css issues for projects
sadly I just stink at CSS, layouts, and colors and other design things. Who would've thought that building a bunch of boxes could be some troublesome :P. I've been trying to figure out things and I've been trying to get those skills together with each project but it never clicks. With that being said, is there any tools that can help with design, colors, and the css side of things so I can focus more on the BE and some FE for any full stack projects I do?
10 replies