Dopo aver letto questo articolo: http://freephp.html.it/articoli/view...sp?id=71&pag=1
ho effettuato questa modifica allo script e per lo meno adesso riesco a caricare i file nelle cartelle create:
Codice PHP:
<?
include("../config.php");

$q2 "INSERT INTO celebrita VALUES('','".$_POST["nome"]."','".$_POST["cognome"]."','".$_POST["categoria"]."',
'"
.$_POST["lavoro"]."','".$_POST["foto"]."','','','')";
if(
$result2 mysql_query($q2)) {
$q "SELECT * FROM celebrita WHERE nome='{$_POST["nome"]}' AND cognome='{$_POST["cognome"]}'";
$res mysql_query($q) or die(mysql_error());
$r mysql_fetch_assoc($res);
$cart "{$r["nome"]}_{$r["cognome"]}";
mkdir($cart);
chmod ($cart0777);
}
?>