Código PHP:
$c= rand(1, 3);
$nom_include = "include_metas_$c.php"
include $nom_include;
include_metas_1.php, include_metas_2.php y include_metas_3.php
algun cable?
gracias de antemano
| ||||
Respuesta: problema con include Warning: main($c_include_metas.php) [function.main]: failed to open stream: No such file or directory in /home/quatromu/public_html/prova_random.php on line 14 Fatal error: main() [function.require]: Failed opening required '$c_include_metas.php' (include_path='.:/usr/lib/php') in /home/quatromu/public_html/prova_random.php on line 14 ha que ha canviado la variable al principio para que me me pinte 1_include_metas.php, 2_include_metas.php |