Salve, ho creato uno script con fopen, fwrite, fclose, ed ho inserito questo codice:
ed ho notato che sul file dove deve scrivere viene scritto:Codice PHP:fwrite($f, "<?php if (\"$utente\"!=\"password\"){header(\"Location: accessonegato.htm\");exit;}?>\r\n");come potrei far in modo che venga scrittoCodice PHP:<?php if (""!=\"password\"){header(\"Location: accessonegato.htm\");exit;}?>al posto di:Codice PHP:<?php if (\"$utente\"!=\"password\"){header(\"Location: accessonegato.htm\");exit;}?>?Codice PHP:<?php if (""!=\"password\"){header(\"Location: accessonegato.htm\");exit;}?>
EDIT: PROBLEMA RISOLTO scrivendo:
Codice PHP:fwrite($f, "<?php if (\$utente!=\"password\"){header(\"Location: accessonegato.htm\");exit;}?>\r\n");

LinkBack URL
About LinkBacks
