Most voted "include" questions
85 questions
Sort by count of
-
1
votes1
answer163
viewsIsset does not work
Good afternoon. I’m making a shared racing web app, like "Uber". I want you to present a list of registered drivers in the bank on the green carousel. However, as the image shows, my isset does not…
-
1
votes0
answers1823
viewsStandard header and footer for all pages
On the site I’m doing, like most, the page header and footer never change, only the body content. With header and footer I mean the whole part that’s beyond the <body></body>. What I’m…
-
1
votes2
answers163
viewsLoad include PHP from an External ID
You guys, good night! I have the following Code: <!-- Box do Cupom --> <article class="box_cupom"> <?php include("cupom.php"); ?> </article> This include PHP carries an…
-
1
votes1
answer572
viewsWhat’s the difference between "include" and "extend" in Ruby?
I’m studying Ruby, and I’ve come to realize that there are two ways (maybe there are more) of injecting methods into a class. At first I thought they might be the same things, since Ruby is a…
-
1
votes1
answer43
viewsHow to use require/include inside the repeat loop?
What is the most appropriate way to return the dynamic content of a PHP script, loaded via include within a loop? Below are more details: pagina1.php -> returns the name of the companies…
-
1
votes1
answer36
viewsSite structure with includes
Good morning guys. I’m developing a new site but I have a question here regarding the structure because of google. I will explain. The structure of the pages of the site is being through includes,…
-
0
votes3
answers3063
viewsPut site path in a PHP include
How to put the whole site path in a include? For example: <?php include "http://www.site.com.br/include/categorias.php"; ?> You can do something like that?…
-
0
votes1
answer1421
viewsClear URL Parameters after include
When I pass parameters in the URL to a particular file through a GET, and this file makes the necessary changes, it has a include to return the home page of the action performed. When you return to…
-
0
votes2
answers773
viewsInclude_once and right directories - php
I’m having trouble with include regarding directories, because when I call a class from another directory that contains another include the paths are different. I need to know if there’s any way to…
-
0
votes1
answer136
viewsASP and paths in include
Hello, I have an application installed in IIS 8 whose default file includes other files in folders located before the default.asp directory. Exemplifying: the default.Asp file is located in:…
-
0
votes2
answers67
viewsWhy do requires and includes fail to add files that are in directories above the call file?
I realized that require and includes cannot include files that are above the call file directory. Because this occurs? Example: It works: <?php require_once('inc/configs.php'); ?> That doesn’t…
-
0
votes0
answers37
viewsRedirect or remove Function.include with . htaccess in Wordpress
I wonder if there is how I redirect error 404 of various articles that has been going on, the example is the following: http://meu-site.com/artigo-1/function.include…
-
0
votes1
answer294
viewsHow do I track php file execution through the console?
update: actually my problem had nothing to do with this snippet from blockquote down there. I learned how to debug PHP, and I found several errors, but I’m not even going to enter here in each of…
-
0
votes3
answers2504
viewsinclude php does not work
I have the following directory tree: .var ..|--www ......|--site ..........|--index.php ..........|--all ..............|--controller ..................|--conexao.php (classe) ..............|--model…
-
0
votes1
answer58
viewsDoubt about include in files in previous directories
Let’s say I have a file called header.php located in CMS/admin/includes. Let’s say I gave include this header.php file in a file called index.php located in CMS/admin. Inside the header.php file I…
-
0
votes3
answers2105
viewsUse external file function without giving include
I have a function getHeader() in the archive include.php. It is possible to call this function in my file index.php without having to give a include, similar to Wordpress?…
-
0
votes1
answer158
viewsHow the PHP include function works behind the scenes
Let’s say I have two pages, one call teste.php and the other teste2.php. On the page teste.php I have the following code: ... $usuario = new Usuario(); $usuarios = $usuario->getUsuarios(); ...…
-
0
votes2
answers59
viewsInsert HTML code in Client-side form without using PHP
Guys I have two external files called header.html and footer html containing headers and footer of a site, with menus and etc. I need to include these external files in the site pages without using…
-
0
votes2
answers276
viewsRun include inside if
Hello I need to add one include within a function if but at run time does not read the added include. Someone can give me a hint where is the error. Menu content.html <div id='menutopo'>…
-
0
votes1
answer864
viewsmake a include of a library out of the library folder
How do I include a library that is not in my library folder in C++? I know the directive of #include with <> can do the include of the file that is not in the same folder, but if I own…
-
0
votes1
answer226
viewsProblem with namespace and include
Good morning. I have a webservice made on slimPHP . I have a class called control, and he belongs to the namespace controllers, it works normally without problems , but there arose the need to…
-
0
votes0
answers50
viewsImage problems using include
I am developing a website and after developing most of the files, I decided to organize them in their respective folders. localhost/hostname/ -- root directory localhost/hostname/includes/ --…
-
0
votes1
answer80
viewsClasses do not load! Script runs on xampp but does not run on LAMP/LEMP/VPS
Guys, I made a very light and simple script. In xampp it runs normal, but when I go up to any server does not go at all. I’ve tried the Lamp, Lemp (From Digital Ocean), at VPS (Dreamhost), but it…
-
0
votes1
answer464
viewsHow to add include by expression in Repository Pattern C#
I am creating a Repositorybase (Repository Pattern) with Entityframework Asp.Net Core, and in it I am creating a Where method, where I pass a Where expression of the entity. So far the method works…
asp.net-mvc asp.net entity-framework include repositoryasked 6 years, 3 months ago Nicola Bogar 123 -
0
votes0
answers203
viewsHow do I use to call another namespace without using include?
I see programmers all the time using the "use" command below the "namespace" command without first using a include. An example is the Medoo library: namespace Medoo; use PDO; use Exception; use…
-
0
votes0
answers86
viewsinclude does not work
I made a modular system in which each part of the pages is in a folder, the problem is that I have a page with a form that is inside a modal, that form receives information from the bank, when I…
-
0
votes2
answers42
viewsError including js in view
On the system I am working on, there is a php file of js functions: <script type="text/javascript"> function alertaProximaBloqueada(){ [...] } function ManualAluno() { [...] } [...]…
-
0
votes1
answer34
viewsSite menu does not work on some mobile page
I made a site where the menu is inserted in all pages through a include. It turns out that on some pages when the menu gets in the format for mobile devices works normally and on other pages it does…
-
-1
votes2
answers294
viewsinclude is only inserted after the <body>, and would like it to be included earlier
I use a file called head.php to add meta tags to each page more easily! However include is only included after the body, when in fact I need you to stay before the body! Codebase:…
-
-1
votes1
answer31
viewsI would like to display a txt file using JS or PHP respecting line break
I tried included and require, but they do not respect the line break. I want to print the file information inside a <p>, study-only.
-
-2
votes1
answer26
viewsinclude the css on other pages
I’m trying to put the CSS within a subfolder with the include, but I can’t. I’ve used ../, .../, all kinds possible, but I can’t. the structure of my project is like this: css[folder]/css.css…
-
-2
votes1
answer265
viewsError in include when uploading site
Hello! I’ll be brief. I’m having problems on the server 000webhost.com. Upload my website test to check how the login on facebook would look on the air. That is the mistake: Warning:…
-
-2
votes2
answers107
viewsProblem with the include
So I’m having trouble making the include. I have performed this same method several times to address the file that is in the controller folder, but now it is not working. What can be? include_once…
-
-3
votes1
answer49
views"Out of memory" error when adding a new plugin
After I updated wordpress to the latest version it is not possible to install plugins, add new articles or edit articles. Any action you take appears this message. Fatal error: Out of memory…
-
-4
votes2
answers52
views