Questions tagged as 'include'

2
answers

Menu in PHP and HTML [closed]

I need you to ask me a question, I created a page and put the menu in PHP. Following data: menu.php <div class="col-md-9 text-left float-left collapse-navation"> <div class="navbar-collapse collapse navbar-inverse no-transition...
asked by 09.10.2015 / 16:48
1
answer

How to reset CSS from multiple HTML files included by require

By hint , I'm trying to use normalize.css to zero the styles between require and another, but there is no way, the CSS of the later file completely interferes with the layout of the the previous file. This does not change the re...
asked by 01.06.2015 / 01:35
0
answers

Default header and footer for all pages

In the site I'm doing, like most, the header and footer of the page never change, just the contents of the body. With header and footer I mean the whole part that goes beyond <body></body> . What I'm doing is putting the fol...
asked by 17.05.2018 / 15:56
3
answers

What to use require / include / require_once / include_once?

I am 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_o...
asked by 09.05.2014 / 10:18
1
answer

Include files with friendly URL [closed]

I'm using friendly URL on my site, I include the files in index.php all correctly, and it works on my file pages/register.php right. > Only when I access directly with url http://localhost/treinos/pages/register.php...
asked by 18.05.2015 / 04:39
3
answers

Use external file function without include

I have a function getHeader() in the file include.php . Is it possible to call this respective function in my index.php file without having to give include , similar to Wordpress?     
asked by 21.02.2017 / 02:06
3
answers

Put site path in a PHP include

How to put the whole site path in an include? For example: <?php include "http://www.site.com.br/include/categorias.php"; ?> Can you do something similar?     
asked by 29.09.2014 / 16:12
3
answers

include php does not work

I have the following tree of directories: .var ..|--www ......|--site ..........|--index.php ..........|--all ..............|--controller ..................|--conexao.php (classe) ..............|--model ..................|--bo ...................
asked by 13.07.2015 / 15:15
1
answer

include failed to open stream

Ladies and gentlemen, please help me. I have a clients.php file, which has a table of clients to fill. The data that will populate this table is in the class Customer.php. I'm therefore using a 'Client.php' include at the beginning of t...
asked by 28.07.2017 / 20:34
2
answers

Execute include within if

Hello I need to add include inside a if function but at the time of execution it does not read the added include. Can someone give me a hint where the error is. Menu content.html <div id='menutopo'> <div id= 'menu1'>...
asked by 19.05.2016 / 03:42