Topic: problems

In english:
hi,
Moreover another problem appears to me impossible to host images!

Here is my site: http://play-on-line.war-h.info/image/

In espanol:
hola,
Además otro problema que me parece imposible de ser anfitrión de las imágenes!

Aquí está mi sitio: http://play-on-line.war-h.info/image/

Thank's or gracias

Last edited by tux60 (2009-04-04 11:19:27)

Thumbs up

Re: problems

Try with this: http://chevereto.com/foro/post770.html#p770 smile

Thumbs up

Re: problems

thank's yu for your help but they don't work.
Now i have this message when i uplaod an image:

Warning: copy(image/up/image/working/titre_web20.png) [function.copy]: failed to open stream: No such file or directory in /home/okba/public_html/image/engine.php on line 269

Warning: getimagesize(image/up/image/working/titre_web20.png) [function.getimagesize]: failed to open stream: No such file or directory in /home/okba/public_html/image/engine.php on line 320

Warning: unlink(image/up/image/working/titre_web20.png) [function.unlink]: No such file or directory in /home/okba/public_html/image/engine.php on line 357

And here is my config.php:

<?

/* -----------------------------------------

  Chevereto - Script de hosting de imagenes
  Nightly Build 1.4 (25/02/2009)
  http://www.chevereto.com/

  Released under the GPL 2.0
  Copyright (C) 2008 by Rodolfo Berrios
  <inbox at rodolfoberrios dot com>

  ----------------------------------------- */

// Lang
define('LANG', 'fr'); // fr - French, en - English, es - Español, fa - Farsi

define('APP_NAME', 'UpImg'); // Your image hosting name
define('TAG_LINE', 'Image Hosting'); // Your tagline (for doctitles and logo)

// Si cambias esto deberas cambiar las carpetas fisicas
define('DIR_UP','image/up/');
define('DIR_IM','image/images/');
define('DIR_WORKING',DIR_UP.'image/working/');
define('DIR_TEMP',DIR_UP.'image/temp/');
define('DIR_TH','image/thumbs/');

// Configuraciones de imagenes
$max_mb = '5.0'; // Maximo tamaño de imagen (Mbytes)
$max_by = $max_mb*1048576; // Maximo tamaño de imagen en bytes)
$max_name = '10'; // Caracteres maximos (no incluye ext y ".")
$mini_ancho = '1'; // Ancho del thumb (pixels)
$mini_alto = '1'; // Alto del thumb (pixels)
$lowres = '1'; // Minimo ancho a redimensionar
$higres = '3800'; // Maximo ancho de redimension

// Configuracion espedifica 
$lim_act = true; // true: Permite que se posten imagenes solo de tu DOM_SCRIPT - false: Permite que se suba desde cualquier parte (por ejemplo un formulario en un foro)
$debug_mode = true; // false: No muestra nada - cualquier otro valor mostrara los errores segun la config del servidor.
$cut_url = true; // true: Se cortan las URL (pe: TinyURL.com) - false: No se cortan las URL.
$cut_url_user = true; // Si $cut_url = true -> true: Permite a los usuarios elegir cortar url (preferencia) - false: No los deja establecer preferencia
$allow_over_resize = false; // true: peremite que se redimensione por sobre el ancho de la imagen - false: no redimensiona sobre el ancho de la imagen

// Upload por FTP, en algunas configuraciones no es necesario el $use_ftp, pero en la mayoria si (pe: cPanel)
$use_ftp = false; // true: usara ftp para subir los archivos - false: no usara ftp (usar si php tiene permisos o si se aplica chmod).
$ftp_host = DOM_SCRIPT; // Si no es igual a tu dom script entonces lo cambias.
$ftp_user = '';
$ftp_pass = '';

// No editar, salvo problemas
// SERVER
define('DOM_SCRIPT', $_SERVER['SERVER_NAME']);
define('PATH_SERVER', '/public_html/');

// PATH
$path = dirname($_SERVER['PHP_SELF']);
if (strlen($path)>1) { 
    define('PATH_SCRIPT', $path.'/');
} else {
    define('PATH_SCRIPT', $path);
}

// URL
define('URL_SCRIPT', 'http://'.DOM_SCRIPT.PATH_SCRIPT);

?>

I have uploaded it in: /public_html/image

thank's you for your help!

Thumbs up

Re: problems

use the ftp mode

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: problems

If i use ftp mode;
i will modify: ftphost, ftpuser and ftppass?
thks

Thumbs up

Re: problems

Just ftp_user and ftp_pass
If don't work modify ftp_host

Thumbs up

Re: problems

okk, thks

Thumbs up

Re: problems

I have modify it but now I have this error in  the index:

Warning: ftp_close() expects parameter 1 to be resource, null given in /home/okba/public_html/image/engine.php on line 651

And when I upload an image, I have this error:

Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/okba/public_html/image/engine.php on line 251

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/okba/public_html/image/engine.php on line 252

Unable to send images, the script is not properly configured or not working on this server.

Thks for your help

Thumbs up

Re: problems

The uploaded image appears?

Thumbs up

Re: problems

No, you can test at this adress: http://play-on-line.war-h.info/image/

Thumbs up

Re: problems

tux60 wrote:

No, you can test at this adress: http://play-on-line.war-h.info/image/

Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known

Change the ftp_host, from DOM_SCRIPT to whatever is your ftp host.
wink

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: problems

Oh yes!!
I have tested it in my dedicated serveur and it's work!!!!!
Yahoooooooooo

Thumbs up