Salve a tutti,
non riesco ad usare require_once(), per usare un file esterno.
posto il codece va
file 1.php
file 2.php quello che contiene la funzioneCodice PHP:
<html>
<body>
<?php
require_once("2.php");
$strid = getID();
echo $strid;
?>
</body>
</html>
naturalmente è un codice di esempio, non serve a nulla.Codice PHP:
<?php
function getID(){
return "165";
}
?>![]()