Apache - Apache y php (http no envia datos)

 
Vista:

Apache y php (http no envia datos)

Publicado por Abdón (2 intervenciones) el 18/02/2004 04:01:26
Hola buen día.
Tengo un servidor Red Hat 9 con el apache y el php que trae el paquete, pero cuando mando un formulario de html el archivo de php no recive las variables o vienen vacias, alguien sabe porque sucede esto?

De antemano gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

problema viejo y trivial

Publicado por killer (16 intervenciones) el 18/02/2004 06:39:49
El asunto viene desde la version 4.1, creo, y se debe a un problema de seguridad. Lo mas ariesgado que puedes hacer es cambiar de Off a On la option

register_globals = On|Off

del php.ini, tienes que buscarlo, generalmente lo encuentas en

/etc/php.ini

y asunto arreglado, tus SCRIPT funcionaran como por arte de magia, no olvides reiniciar el demonio del FAMOZO Apache, pero metete en la cabeza que tienes un hoyo de seguridad abierto, lo mejor sera dejar el register_globals = Off y usar unas funciones en tu fichero php para que reciban las variables:

$_GET - contains form variables sent through GET
$_POST - contains form variables sent through POST
$_COOKIE - contains HTTP cookie variables
$_SERVER - contains server variables (e.g., REMOTE_ADDR)
$_ENV - contains the environment variables
$_REQUEST - a merge of the GET variables, POST variables and Cookie variables. In other words - all the information that is coming from the user, and that from a security point of view, cannot be trusted.
$_SESSION - contains HTTP variables registered by the session module

> $_GET["variable"]
> $_POST["variable"]
> etc.

happy hacking
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar