Questions tagged as 'include'

1
answer

How to separate global functions / variables from the program into files?

I have some files: vetores.c // função main uniao.c // função para unir vetores ordena.c // função para ordenar vetores globais.c // arquivo com variáveis globais I want to know how I reference one file in the other. Example: I need to...
asked by 04.12.2015 / 19:57
1
answer

Require once / Include in Laravel

I am trying to include a file in a page on a site made in Laravel. The file and the page are on different servers. How can I do this? I tried with include and gave the following error: include(): http:// wrapper is disabled in the server c...
asked by 26.02.2016 / 14:45
1
answer

Why when I include my .h header, is the .c implementation not included too?

I have three files, produtos.h , produtos.c and main.c . produtos.h is located in the "headers" folder, produtos.c is located in "sources" and main.c is in the same folder as "headers" and "sources", some...
asked by 08.10.2018 / 17:23
1
answer

Doubt regarding the inclusion of headers

Is it considered a "bad programming practice" to include a header that had already been included in another header that I included? Was it difficult to understand the above question? If so, look at the code below: # tst_1.h #ifndef TST...
asked by 09.08.2018 / 13:48
1
answer

.htaccess import another file with rule

I have the following problem, I have an administrative area where redirects can be registered, and these redirects are saved in the database, I currently do the redirection via PHP , but I would like to do this redirection via htaccess...
asked by 08.03.2016 / 13:24
1
answer

PHP-CPP Include file within extension

I'm developing a php extension with PHP-CPP, where I need to make an include of a php file within the extension, I'm doing this to protect the code. I'm trying this way: Php::Value HomeController () { std::string source = ""; source += "<?p...
asked by 29.10.2015 / 11:43
1
answer

Problem with positioning of include.php

I'm having a problem with the footer placement I made with include.php . I created a include.php file, so the only thing I have in it is box of where the footer will be since I'm still testing. I'm calling it at the end...
asked by 04.04.2015 / 21:49
3
answers

include library in C is required?

I came across the following situation:    Ubuntu 16.01       gcc --version       gcc (GCC) 6.3.0   Copyright (C) 2016 Free Software Foundation, Inc.   This is free software; see the source for copying conditions. There is NO   warranty; not...
asked by 22.04.2017 / 15:41
2
answers

Include PHP Menu

I'm having difficulty including a php code with html on another page using include, in case the code is a menu written in html but with php extension. When having to include the code of the file menu.php in the file index.php it accuses an error...
asked by 15.05.2015 / 17:46
1
answer

Isset does not work

Good afternoon. I am doing a web application of shared races, type "Uber". I want you to present a list of drivers registered on the bench on the green carousel. However,astheimageshows,myissetdoesnotseemtobeworking,italreadyshowsmeall...
asked by 15.05.2018 / 18:56