Come mai mi stampa solo il titolo nel file php pur salvando tutti i files txt? in pratica non stampa l'include nel files o meglio stampa solo l'include del titolo....
Ecco il codice:
<?php
function ScriviTitolo ($Titolo, $ID1) {
//Scrive il titolo del sito
$TheFile="txt/" .$ID1."titolo.txt";
$Open1 = fopen ($TheFile, "a");
if ($Open1) {
fwrite ($Open1, "$Titolo\n");
fclose ($Open1);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviURL ($URL, $ID2) {
//Scrive l'URL del sito
$TheFile2="txt/" .$ID2."url.txt";
$Open2 = fopen ($TheFile2, "a");
if ($Open2) {
fwrite ($Open2, "$URL\n");
fclose ($Open2);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviDescrizione ($Descrizione, $ID3) {
//Scrive la Descrizione del sito
$TheFile3="txt/" .$ID3."descrizione.txt";
$Open3 = fopen ($TheFile3, "a");
if ($Open3) {
fwrite ($Open3, "$Descrizione\n");
fclose ($Open3);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviID ($ID) {
//Scrive l'ID del sito
$TheFile4="txt/" .$ID."id.txt";
$Open4 = fopen ($TheFile4, "a");
if ($Open4) {
fwrite ($Open4, "$ID\n");
fclose ($Open4);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviPassword($Password, $ID4) {
//Scrive Password del sito
$TheFile5="txt/" .$ID4."password.txt";
$Open5 = fopen ($TheFile5, "a");
if ($Ope5n) {
fwrite ($Open5, "$Password\n");
fclose ($Open5);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviTitoloPHP($PHP) {
//Scrive PHP del sito
$TheFile6="links.php";
$Open6 = fopen ($TheFile6, "a");
if ($Open6) {
fwrite ($Open6, "$PHP\n");
fclose ($Open6);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviURLPHP($PHP1) {
//Scrive PHP del sito
$TheFile7="links.php";
$Open7 = fopen ($TheFile7, "a");
if ($Open7) {
fwrite ($Open7, "$PHP\n");
fclose ($Open7);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
function ScriviDescrizionePHP($PHP2) {
//Scrive PHP del sito
$TheFile8="links.php";
$Open8 = fopen ($TheFile8, "a");
if ($Open8) {
fwrite ($Open8, "$PHP\n");
fclose ($Open8);
$Worked = TRUE;
} else {
$Worked = FALSE;
}
return $Worked;
}
?>
<html>
<head>
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="tricolorecompany@email.it">
<meta name="generator" content="AceHTML 5 Freeware">
</head>
<body>
<?php
$CallFunction = ScriviTitolo($Array["Titolo"], $Array["ID"]);
$CallFunction = ScriviURL ($Array["URL"], $Array["ID"]);
$CallFunction = ScriviDescrizione ($Array["Descrizione"], $Array["ID"]);
$CallFunction = ScriviID ($Array["ID"]);
$CallFunction = ScriviPassword ($Array["Password"], $Array["ID"]);
$CallFunction = ScriviTitoloPHP ("<?php include 'txt/" .$Array["ID"]. "titolo.txt' ?>");
$CallFunction = ScriviURLPHP ("<?php include \'txt/" .$Array["ID"]. "url.txt' ?>");
$CallFunction = ScriviDescrizionePHP ("<?php include \'txt/" .$Array["ID"]. "Descrizione.txt' ?>");
if ($CallFunction) {
print ("Link Inserito con Successo!
\n");
} else {
print ("Errore nell'inserimento del link...
\n");
}
?>
</body>
</html>
Qualcuno sa aiutarmi? Tnx