Hi there, i've searched for similar problem but haven't found one !
I assume my problem is a simple directory path one :
My site is : http://ainur.vaxserver.eu
I want Chevereto in http://ainur.vaxserver.eu/images/
So i've uploaded the files in the dire : root/www/images/
And edited the config file :
I've added the last lines in order to make you view the output dir :
HERE
For me everything is fine but it does not work
http://ainur.vaxserver.eu/images/
If anyone could help me i'll be very grateful !
I assume my problem is a simple directory path one :
My site is : http://ainur.vaxserver.eu
I want Chevereto in http://ainur.vaxserver.eu/images/
So i've uploaded the files in the dire : root/www/images/
And edited the config file :
Code:
// SERVER ///
/* We get this values with $_SERVER. If your server doesn't resolve this values The script will not work.
If the script doesn't work, you must change this values to be like values in the comments (see the exaple below) */
$DOM_SCRIPT = $_SERVER['SERVER_NAME']; // --> mysite.com
//$PATH_SERVER = $_SERVER['DOCUMENT_ROOT']; // --> /public_html (pssst.. NO ENDING SLASH!)
$PATH_SERVER = '/home/ainur/www/images'; // --> /public_html (pssst.. NO ENDING SLASH!)
// example:
# $DOM_SCRIPT = 'mysite.com';
# $PATH_SERVER = '/public_html';
/* Btw, you can check this values by uncommenting this: */
// echo 'DOM: '.$DOM_SCRIPT.' - PATH: '.$PATH_SERVER;
// FTP MODE //
/* Use this if you want to upload the files through ftp php (http://php.net/ftp). This is handly when your server config don't
allow to upload files without CHMOD 777, like almost all the cPanel. Using this, you can forget the CHMOD ;) */
$use_ftp = false; // true: Uses ftp to upload files - false: Upload without ftp.
$ftp_host = $DOM_SCRIPT; // Change this if your ftp host is not the same as your mysite.com -- example: $ftp_host = 'ftp.mysite.com';
$ftp_user = ''; // valid username.
$ftp_pass = ''; // Valid password.
// NOTICE: FTP user must have access to the script folder.
///////////////////////////////
/// DO NOT TOUCH BELOW THIS ///
///////////////////////////////
// PATH //
/* Uhhh.. Can't touch this!. */
$path = dirname($_SERVER['PHP_SELF']);
if (strlen($path)>1) {
define('PATH_SCRIPT', $path.'/');
} else {
define('PATH_SCRIPT', '/'); // Windows fix
}
// URL //
/* Uhhh... Uhhh.. Can't touch this!. */
define('URL_SCRIPT', 'http://'.$DOM_SCRIPT.PATH_SCRIPT);
echo 'Path : '.$path.' ';
echo 'Dom Script : '.$DOM_SCRIPT.' ';
echo 'Path Server : '.$PATH_SERVER.' ';
echo 'http://'.$DOM_SCRIPT.PATH_SCRIPT;
?>
I've added the last lines in order to make you view the output dir :
HERE
For me everything is fine but it does not work
http://ainur.vaxserver.eu/images/
If anyone could help me i'll be very grateful !