
Amigos tengo esta funcion y quiero que me lea una variable de php (donde esta la ruta) y de esa manera me pueda leer mi archivo. Que esta mal en este codigo??? Ya le dabo muchas vueltas y no puedo hacerlo. (En la parte de color azul.)
function init()
{
btndetail();
pathwindow = window.location.href;
arr = pathwindow.split("/");
tmppath = "";
for(var i=0; i < arr.length-1 ; i++)
tmppath=tmppath + arr[i] + "/";
pathwindow = tmppath;
<?php include (../index.php);
$SourceDir;
?>
$ruta = $SourceDir;
$inputdom->load($ruta+"/link.rdf");
getURL(pathwindow + "php/ontology.php", loadOntologySvg);
first = true;
ruota = new director();
}
He usado tambien $_GET / POST y no logro realitar nada. :(
Espero me puedan ayudar.
Saludos