Questions tagged as 'include'

0
answers

Problem with Headers in CodeBlocks

I'm using CodeBlocks and testing some applications to use on FriendlyARM Mini 210s #include "linux/fs.h" #include "linux/cdev.h" #include "linux/module.h" #include "linux/kernel.h" #include "linux/device.h" #include "asm/uaccess.h" #include "a...
asked by 09.08.2018 / 16:56
2
answers

Require and include

Hello, I have a question on the following: Class: "Test1.php" <?php class Teste1{}... ?> Ex1- include 'Test1.php' Ex2- include_once 'test1.php' Ex3- require_once 'Test1.php' Is it possible to call test1 (in minuscule), as i...
asked by 17.04.2018 / 17:22
1
answer

Classes do not load! Script runs in xampp but does not run in LAMP / LEMP / VPS

Well, I made a very light and simple script. In xampp it runs normal, but when I upload to any server it will not work at all. I've tried the lamp , lemp (from Digital Ocean), the VPS (Da Dreamhost), but it really will not. p> The fi...
asked by 29.01.2018 / 05:31
0
answers

Problems with image when using include

I'm developing a website and after developing most of the files, I've decided to organize them in their respective folders. localhost / nomedosite / - root folder localhost / nomedosite / includes / - folder where are navs, admins, footers...
asked by 29.07.2017 / 00:57
1
answer

How PHP's include function works behind the scenes

Let's say I have two pages, one call teste.php and the other teste2.php . On page teste.php I have the following code: ... $usuario = new Usuario(); $usuarios = $usuario->getUsuarios(); ... And on page teste2.ph...
asked by 24.04.2017 / 18:48
1
answer

Doubt about include in files in previous directories [duplicate]

Let's say I have a file called header.php located in CMS / admin / includes. Let's say I've included this header.php file in a file called index.php located in CMS / admin. Inside the header.php file I want to give include in a file called...
asked by 22.01.2017 / 17:48
0
answers

Redirect or remove function.include with .htaccess in Wordpress

I would like to know if there is a way to redirect the 404 error of several articles that have been happening, the example is as follows: link link This occurs in several articles, is it possible with .htaccess to redirect this error t...
asked by 27.04.2016 / 03:51
1
answer

ASP and paths in include

Hello, I have an application installed on IIS 8 whose default file makes include of other files in folders located before the default.asp directory. Exemplifying: The default.asp file is located at: httpdocs/www/pasta1/pasta2/pasta3.1/pa...
asked by 11.03.2015 / 18:14
2
answers

Why requires and includes can not add files that are in directories above the call file?

I noticed that require and includes can not include files that are above the directory of the calling file. Why does this occur? Example: This works: <?php require_once('inc/configs.php'); ?> This does not wor...
asked by 10.01.2016 / 17:46
1
answer

Clear URL parameters after include

When I pass parameters in the URL for a given 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 the page, the information passed as param...
asked by 23.10.2014 / 23:10