Questions tagged as 'header'

2
answers

What is Connection Keep-alive?

When I check the headers I am sending to a php page, which is installed locally, I always see this Connection: Keep-Alive Example: var_dump(getallheaders()); Output: array (size=7) 'Host' => string '127.0.0.1' (length=9)...
asked by 05.08.2015 / 17:38
2
answers

Redirect: Location vs Refresh

When you use Location and Refresh to redirect. header( "Location: www.dominio.com" , TRUE , 302 ) header( "Refresh:5; url=www.dominio.com" , TRUE , 302 ) Both options produce the same result: redirection . The difference is tha...
asked by 09.09.2014 / 04:13
2
answers

What is "stdafx.h" and what is its importance?

When creating a C ++ project in Visual Studio, it automatically brings a line in the main file: #include "stdafx.h" As I started the language study, seeing some " hello world ", I did not find this line in the examples. When removing thi...
asked by 20.05.2017 / 03:20
2
answers

Undefined function reference

I have a problem related to the modularization of my project. Do not get too much into the logic of the program, because the biggest problem I face is the fact that the program does not compile. I think the problem lies in linking between the...
asked by 09.01.2015 / 02:23
1
answer

Why is it recommended to put the javascript codes at the end of the body tag scope? [duplicate]

Do you have any rules regarding the use of scripts in the head tag? W3C has not made the usage rules very clear.     
asked by 02.09.2015 / 05:25
1
answer

Place Authorization: Basic on api

I'm creating an API as I said, and I need to use Authorization: Basic KEY to send login and password via header. Unfortunately I have no concept header('Authorization: Basic dXNlcjpwYXNzd29yZA=='); This code I have to send and in...
asked by 08.08.2014 / 03:17
2
answers

Force text download in MSWord-supported format with PHP?

I would like to know how to force the download of a file, with some extension supported by Microsoft Word p> I've searched a few times, tested the MIME types I found, like the ones in this Microsoft's list , but I did not succeed. This...
asked by 11.09.2015 / 07:13
1
answer

Function "strcmp ()" working without adding "string.h"

I wrote an algorithm in C that uses the strcmp() function. Even forgetting to add the string.h algorithm worked. I would like to understand how it worked since I only found this function in the string.h library. #includ...
asked by 19.12.2018 / 20:22
2
answers

Navbar does not hide the div title when item is clicked

How do you make sure that the fixed header does not hide the elements? I'm using bootstrap 4 for a navbar. Here, for example, I have a fixed header and some divs with titles. When I click on an item, it redirects (with href) to that session ......
asked by 29.08.2018 / 17:07
1
answer

Header can not find the last destination

I'm working on a project and the header function can not find the destination passed to it. I have the following folder structure: Inagivenform,Ipassactionto:<formmethod="post" action="index.php?pagina=../controller/controllerCatego...
asked by 04.05.2015 / 00:21