L
L
lukoie2016-07-25 10:29:29
PHP
lukoie, 2016-07-25 10:29:29

Is it permissible to make a php page on includes?

It is necessary to make a one-pager for a person who can break the code if he edits it.
I want to make a php page and include php files with content in it. Which to give to a person for editing, and only share the directory with them.
But somewhere I remember something that a lot of inclusions is not correct.
Is this true, and if so, what is the best way to implement it in my case?
ZYZH CMS to fasten in this case, I think it's redundant.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
D', 2016-07-25
@lukoie

What is "acceptable"?
You have to do as you see fit. Thinking "What if they think that I'm a sussi-pusi govnokoder" is a bad idea.
The article seems to hint.
No need to complicate.

L
Lander, 2016-07-25
@usdglander

Well, actually, the era of namespaces and autoloaders has long been. That is why they try to avoid inclusions. But in your case, why not? :)

S
Sergey Goryachev, 2016-07-25
@webirus

I may be wrong, feel free to correct me.
But instead of include it is better to use require.
www.php.su/require_once

S
shagguboy, 2016-07-25
@shagguboy

includes are now made automatically through autoloading

M
Mercury13, 2016-07-25
@Mercury13

It is better to use require instead of include.
A good thing if you need to quickly come up with a sub-CMS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question