Ciao a tutti, da molto tempo uso PKP...ma da un po di tempo ho un problema!
Tramite fckeditor per creare pagine mettendo i tag <php></php> posso mettere del codice php..ma da oggi non mi funziona più!
Perchè?
phplib.php
Codice PHP:
<?php
/*
Copyright 2006,2007 Paolo "pop killer" Di Febbo

This file is part of PKP (pop killer portal).

PKP is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PKP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PKP; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

// Indirect Interpreting System
function phpiis($code){
// Replace <php> tags with the standard php tag, allowing the interpretation
$newcode = ereg_replace("<php>", "<?php ", $code);
$newcode = ereg_replace("<\/php>", " ?>", $newcode);
// Render the page and returns the final output
ob_start();
eval(
"?>".$newcode."<?php ");
$return = ob_get_contents();
ob_end_clean();
return
$return;
}

?>
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in phplib.php(29) : eval()'d code on line 73
Ma la linea 73 non esiste!!!
Ho letto che potrebbe essere il php_safe...infatti il php_safe è attivato ed è questo che procura l'errore..sapete come risolverlo?
Grazie 1000...ciao Davide! ^^