L
L
Leonid Rozhentsev2020-10-20 07:14:36
Backend
Leonid Rozhentsev, 2020-10-20 07:14:36

How to create a backend?

I started learning web development, fully mastered the Frontend, I'm starting to learn php for the backend. But the question is: how to place the northern php scripts correctly - in the root directory or in a separate folder?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Shalganov, 2020-10-28
@RLeo777

Sources ( src/), configs ( configs/) and other internals of the project should always be above or at the level of the directory ( public/) that is available to the web server, but never in it.

D
Developer, 2020-10-20
@samodum

fully mastered Frontend

Come on!
I have not seen a single person in my life who has fully mastered the frontend.
Now I'll ask you a couple of questions on the front and you won't answer them :)
Let's start with Android and iOS. You will not deny that mobile applications are also front-end?

F
FasterTans, 2020-10-20
@FasterTans

fully mastered Frontend

No, they didn't.
But the question is: how to place the northern php scripts correctly - in the root directory or in a separate folder?

It's not entirely clear what you mean? You usually have folders with sites on the server in the www folder, then all the files of the site are already inside. PHP, all modern frameworks usually place the entry file in the public folder. You can download any framework and see its structure (or just open some courses, usually one of the first lessons is the course structure).
In general, I would recommend that you take a look at PHP a little, maybe make some kind of shit blog, and continue to work on exactly the direction that you liked best.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question