I would like to sharpen my PHP skills on coding web sites. Is there some web site templates which are ready for coding so I can make them functional without touching HTML or CSS?

I am not very good with HTML and CSS, I find free templates like this all over the internet, but I always have to change them and add eg. registration or log in forms, and invent what pages should be visible while logged out and other stuff.

If someone knows where templates like this can be found, I would be very very grateful :)

or some other nice way to practice PHP coding with web sites making.


And btw, how many of you developers now CSS? It's not really related to PHP so I know it at vary basic level

Dani AI

Generated

As asked for a way to practice PHP without getting bogged down in HTML/CSS, and following points from and about learning the basics, here’s a pragmatic, low-friction workflow that keeps most design work out of your way while letting you focus on server logic.

Pick a ready-made HTML/CSS shell (a Bootstrap-based landing or admin template). Keep the template files intact and split the site into small PHP pieces: config.php, auth.php, reusable header.php/footer.php, and simple content pages. That lets you plug PHP functionality (registration, login, role rules, file uploads) into fixed HTML without redesigning styles. Example layout and a minimal index.php router:

/project
  /public
    index.php
  /app
    config.php
    auth.php
    header.php
    footer.php
  /templates
    home.html
    dashboard.html
<?php
session_start();
require __DIR__ . '/../app/config.php';
require __DIR__ . '/../app/auth.php';
include __DIR__ . '/../app/header.php';

if (!empty($_SESSION['user_id'])) {
    include __DIR__ . '/../templates/dashboard.html';
} else {
    include __DIR__ . '/../templates/home.html';
}

include __DIR__ . '/../app/footer.php';
?>

Tasks to practice (start with one feature, then add more): implement safe registration/login (use password hashing), session-based visibility for pages, PDO with prepared statements, CSRF tokens on forms, secure file uploads (whitelist types, random filenames), simple JSON endpoints for AJAX. Quick troubleshooting checklist: always call session_start() before output, never store plain passwords, escape HTML output (htmlspecialchars) to avoid XSS, and use prepared statements to avoid SQL injection.

If CSS feels tiring, use a designer-made template and Bootstrap utilities to change only text/layout classes. Pairing with someone who likes front-end work is also a practical route — you do the logic, they handle styling. This approach gets you real PHP experience fast while keeping HTML/CSS friction low.

Recommended Answers

All 3 Replies

You can't practice web site coding without HTML :)
And CSS is needed for good styling.
So you will need to learn them while learning PHP.
The PHP code is the one which do processes but the out code is always the HTML (browsers read HTML not PHP).

If you want to practice I think you will do it best with making sample pages with different functions.

If you are really new at PHP, search at the web for any PHP lessons as(create user system with PHP, upload with PHP, and other like those), you will find out a huge base of lessons all over the net.

learn html and css first before php.

I can become a pro in PHP and still know HTML at basic level ;)
And someone else can do CSS,
but I will try to learn it a little bit better anyway

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.