Questions tagged as 'include'

4
answers

Multiple includes bad for performance?

If I use too many includes on my page will it slow down or something like that?     
asked by 07.05.2014 / 13:42
3
answers

include, require within functions functions

Use include (or # I noticed that most frameworks that work with MVC use require within a method, for example the CodeIgniter3 require file: public function model($model, $name = '', $db_conn = FALSE) { ... foreach...
asked by 27.04.2015 / 20:09
3
answers

How does the Include directive work?

Does "include" of C ++ do exactly what? I know it "imports" a header / library. But if I have a Header.h with: #include <string> using namespace std; string a() { return "PTSO"; } and in Main.cpp: #include <string> #include "H...
asked by 24.12.2014 / 11:31
3
answers

What to use require / include / require_once / include_once?

I'm developing an application in PHP and would like to know when and why to use% or require or include or require_once ? I also noticed what you can do in these ways and it works: require_once myfile.php; require_on...
asked by 09.05.2014 / 10:18
1
answer

What's the difference between #include filename and #include "filename"?

Why we use #include <filename> and #include "filename" When to use each?     
asked by 04.01.2017 / 13:36
1
answer

Reserved word include or "use" in PHP?

I saw somewhere that the reserved word include in PHP should be used only in procedural programming, and that in object-oriented programming you should opt for the reserved word use . I did not find anything that would lead me to...
asked by 23.09.2017 / 17:34
1
answer

Problem with include causing unwanted space

I'm creating a page with some includes ( top and footer ) and where I put these includes appears a huge space with a strange code (% code) (the code does not appear on the page, only in the browser element inspector): Look at the im...
asked by 02.08.2018 / 01:26
3
answers

How to avoid repeating the html code? [duplicate]

Good evening, folks. This is the following, I'm using the bootstrap and I would like to know how I avoid repeating the same codes in all pages, since the header and footer are the same, this would make the code more readable, I searched and sa...
asked by 19.12.2016 / 01:35
3
answers

Check in JavaScript if String has x number string

Hello, I'd like to know if you have any way to check if a String has JavaScript in it, for example, random number to trigger an event. Here's how:    abc123de45 It should be false    abc13525de It should be true    ab12cde...
asked by 03.02.2017 / 15:45
1
answer

PHPStorm displays a message using "include" and "require"

For my IDE PHPStorm reason, this message appears with include and require :    Dynamic include expression 'require_once $ file' is not analyzed.   Include expression is not resolved.     
asked by 29.05.2016 / 22:09