Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/09/2007, 19:14
viktorhugo
 
Fecha de Ingreso: septiembre-2007
Mensajes: 3
Antigüedad: 16 años, 7 meses
Puntos: 0
Error al Interpretar codigo PHP

Saludos compañeros del Foro...

Soy se puede decir novato en el uso de PHP y tengo algunos problemas al correr una aplicacion, parece ser que no esta interpetando bien el codigo del PHP, digo y este si esta jalando porque al probarlo con el "phpinfo" me regresa toda la informacion del PHP (http://localhost/info.php) correctamente, pero al hacer una llamada a cualquier pagina php me muestra algo como lo que sigue:


$value) { echo "$value "; if (isset($_REQUEST["file"])) { if ($_REQUEST["file"] == $key) { $current_editing_file = $key; } } } if (!file_exists("config/$current_editing_file")) { if (getParam("searchWord","")=="") { $res = fopen("config/$current_editing_file","w"); $writeres = fwrite($res,""); @chmod("config/$current_editing_file",octdec($set_chmod)); } } //echo "
$program_name
"; echo "
".$files[$current_editing_file]."
"; function getItems($aType,$aFieldName,$aFieldValue,$aX,$aY,$ default) { if ($aType == "c") { $tmp_value = split(",", $GLOBALS["$aFieldName"]); $aFieldValue = trim($aFieldValue); echo " $value) { $key = trim($key); if ($key<>"submit" && $key<>"file") { if (is_array($value)) { $opt = ""; foreach ($value as $element) { $opt = $opt . $element . ","; } $opt = substr($opt,0,-1); $str = $str . "$". "$key = \"".trim($opt)."\"" . ";\n"; } else { $str = $str . "$". "$key = \"".trim($value)."\"" . ";\n"; } } } $str = $str . "?>"; if ($set_demo) { echo "Demo-mode
System in demo-mode, no configuration saved!
"; } else { $r = fopen("config/$current_editing_file","w"); $write = fwrite($r,$str); @chmod("config/$current_editing_file",octdec($set_chmod)); } } require ("config/$current_editing_file"); if (file_exists("setup/configuration_src/$current_editing_file.txt")) $options = file("setup/configuration_src/$current_editing_file.txt"); else { $options = ""; echo "


Es decir me esta regresando un PLAIN TEXT, como que no me interpreta el codigo PHP..., lo llamo asi: http://localhost/phpclass/admin/set.php y estoy trabajando con WinXP, Apache 2.x y PHP 5.x, que podra ser?

Gracias por Todo!!!