-
Problemone con explorer
Ciao a tutti ho u problema. Ho messo extplorer sul mio sito solo che quando vado nell 'index di extplorer mi appare il seguente errore:
Parse error: syntax error, unexpected '=', expecting ')' in /membri/thedubber/extplorer/libraries/FTP/Socket.php on line 507
questo script lo utilizzo su hellospace e non mi ha mai dato problemi. Come mai qui non funziona? come devo fare per poterlo utilizzare?
-
Su AlterVista le funzioni ftp_* non sono attive; per conferma, posta alcune righe(da 500 a 512) di codice del file Socket.php
-
-
-
**
* boolean ftp_alloc ( resource stream, integer bytes [, string &message ] );
*
* Allocates space for a file to be uploaded
* Return TRUE on success or FALSE on failure
*
* NOTE; Many FTP servers do not support this command and/or don't need it.
*
* FTP success respons key: Belive it's 200
* Needs data connection: NO
*
* @param resource &$control FTP stream
* @param integer $int Space to allocate
* @param string &$msg Optional, textual representation of the servers response
* will be returned by reference
*
* @access public
* @return boolean
*/
function ftp_alloc(&$control, $int, &$msg = null)
{
if (!is_resource($control) || !is_integer($int)) {
return false;
}
fputs($control, 'ALLO '.$int.' R '.$int."\r\n");
$msg = rtrim(fgets($control, 256));
$code = substr($msg, 0, 3);
if ($code == 200 || $code == 202) {
return true;
}
return false;
-
Qualcuno ha risolto..?? anche a me servirebbe risolvere questo problema!:razz: