Questions tagged as 'include'

1
answer

Include in absolute address

I am trying to include the config.php file that is in the root folder of the site. However, I also have the header.php file in the root of the site and all pages are in a folder with this name, so the file looks like this. <?php include('.....
asked by 23.01.2016 / 01:11
2
answers

Pass value via $ _GET in include_once [closed]

I need to pass a value to a page that is in include_once , but I do not know how to solve it: The code I'm using for includes is in the main directory: <?php if (isset($_GET["p"])){ if (file_exists($_GET...
asked by 12.12.2014 / 18:15
2
answers

Include creates space in Site Layout

I have two pages. One index.php and the other one is called menu.php. As the menu is the same and I repeat it on several pages I prefer to make it into a separate document and then add it with include ("menu.php") . However, whenever I...
asked by 09.12.2014 / 00:42
2
answers

Include or Require on Nodejs to separate codes

Hello! I would like to know if in nodejs it is possible to separate some codes in different files as in this example below, and how to do this: I currently only have one file this way: File 111.js var app = require('../app'); var d...
asked by 20.07.2017 / 23:59
2
answers

A multi-function file OR multiple files with a function?

In the scope of my project I use include("funcoes.php") , inside this file has all the functions that I use in different parts of the project, I do not use all the functions at all time. Then a question! Pro system would be more adva...
asked by 10.05.2017 / 06:27
1
answer

Compile error with struct

When trying to compile I am facing the following error: ..: error: storage size of 'PPFila' isn't known ..: error: storage size of 'AUTFila' isn't known In this line of code struct Fila PPFila, AUTFila; The struct Queue is bein...
asked by 26.07.2016 / 20:59
1
answer

PHP require_once without the need to pass the full path

I have a legacy project, where all PHP files connect to the database through the file "oracle_ado.php" This file is in the "../inc/" folder and the rest in the folder "../ prod /". I'm setting up another server for this application, where t...
asked by 24.10.2017 / 12:24
2
answers

undefined reference to 'Test_1 :: Test_1

Generally they say that the .cpp is not included in main and yes the .h, however in my case whenever I will include the .h gives error and I do not know why. follow the code: main.cpp #include <iostream> #include "Teste_1.h" int m...
asked by 07.10.2017 / 21:55
1
answer

Why this error appears ï »¿when I include a php [duplicate]

I have the problem of error  whenever I try to include a file. I'm working on an application. When trying to include another file in php simply creates a space on the page, where the characters appear:  . Thank you for...
asked by 28.02.2016 / 21:44
2
answers

File exists but does not include (require_once)

I have a hosting (of doubtful quality), I am making a require_once where I check if the file exists, and is giving error:    Warning: require_once (/home//base/Core\Application.class.php): failed to open stream: No such file or directo...
asked by 06.11.2015 / 22:17