Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/01/2013, 04:57
ginesgb
 
Fecha de Ingreso: noviembre-2012
Ubicación: Madrid
Mensajes: 24
Antigüedad: 11 años, 5 meses
Puntos: 0
Respuesta: Borrar y crear link dinamicos

Hola, perdona que te conteste tan tarde, te pongo un ejemplo de lo que deseo hacer.

Tengo una web que puedo selecciona que tipo de index.php puedo presentar a los usuarios dependiendo de las necesidades.

Página principal.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<div id="wb_indexText1">
<div id="wb_consolaText3">
<span id="wb_uid4">Activar o desactivar:</span></div>
<select name="consolaCombobox2" size="1" id="consolaCombobox2">
<option selected>Ciber--> Web Inicio</option>
<option>Ciber --> Web de Incidencias</option>
<option>Ciber --> Web de Itinerancia</option>
</select>
<input type="submit" id="consolaButton3" name="" value="Aceptar">
</div>
</body>
</html>

Y aquí seria los tres script de cambio.
<?php

system('./inicio.sh');

?>

[root@37l4247d25-07 ciber]# cat inicio.sh
#!/bin/bash
unlink index.php > /dev/null
ln -s /var/www/html/ciber/ /var/www/html/ciber2/index.php

<?php

system('./incidencia.sh');

?>
[root@37l4247d25-07 ciber]# cat incidencia.sh
#!/bin/bash
unlink index.php > /dev/null
ln -s /var/www/html/ciber/ incidencia.php /var/www/html/ciber2/index.php

<?php

system('./intineracia.sh');

?>
[root@37l4247d25-07 ciber]# cat intineracia.sh
#!/bin/bash
unlink index.php > /dev/null
ln -s /var/www/html/ciber/ intineracia.php /var/www/html/ciber2/index.php

Esto es mas o menos lo que deseo hacer.
Muchas gracias por tu ayuda