Salve a tutti, ho questo problema con lo spazio web di tiscali:
codice:
$data1 = addslashes(fread(fopen($_FILES["file1"]["tmp_name"], "rb"), $_FILES["file1"]["size"]));
$nome1=$_POST['nome1'];
Facendo così, mi ritorna il seguente errore :
Warning: fopen(): open_basedir restriction in effect. File(/tmp/php626MRG) is not within the allowed path(s): (/rootdomain/it/s/e/SITO_MIO/public_html/) in /rootdomain/it/s/e/SITO_MIO/public_html/test/intra/foton+.php on line 10
Warning: fopen(/tmp/php626MRG): failed to open stream: Operation not permitted in /rootdomain/it/s/e/SITO_MIO/public_html/test/intra/foton+.php on line 10
Warning: fread(): supplied argument is not a valid stream resource in /rootdomain/it/s/e/SITO_MIO/public_html/test/intra/foton+.php on line 10
come posso fare? un altro modo al posto dell'fread?