Topic: Works on sub-folder but not on root directory.

I'm having problem when trying to use this script in my website root directory. First I ran it on a folder inside the root directory, not a sub-domain, and it worked perfectly ... but when I moved it to the root directory of the domain it didnt work .. like if the style wasnt working or something like that .. All it appears is a white background and the main page text .. no buttons .. anything just that ..

Please don't take this as advertising I just want you to see my problem if you didnt understand what i said.

root directory: www.geupload.com
sub-folder ( script running ): www.geupload.com/test

what could be the problem?

-*------- edit:

I also tested doing it on a sub-domain but it doesnt works:
http://www.img.geupload.com/

and if I check the image url of the button that says "submit query" this is the url:
http://www.img.geupload.com/%5Csite-img … bir_en.gif

and its not the correct path because of the slash ( / ) .. I cant figure out how to fix that ...


http://www.img.geupload.com/ -- not working
http://www.geupload.com/ -- not working
http://www.geupload.com/test -- working

why????

Last edited by Lautaro (2009-09-15 22:19:06)

Re: Works on sub-folder but not on root directory.

hello, anyone knows how to fix this problem?

alguien sabe como puedo solucionar este problema?? ..
pueden explicarmelo en español, tambien hablo..

Re: Works on sub-folder but not on root directory.

Edita en config.php dom script y la path.

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

Re: Works on sub-folder but not on root directory.

ya lo hice, pero no funciono.

Re: Works on sub-folder but not on root directory.

Usas Windows? Reemplaza desde la linea 82 para abajo con esto

// 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);

?>

Last edited by gonzalarcon (2009-09-23 19:28:22)

Thumbs up

Re: Works on sub-folder but not on root directory.

gonzalarcon wrote:

Usas Windows? Reemplaza desde la linea 82 para abajo con esto

// 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);

?>

Wow, realmente no lo puedo creer, me solucionaste el problema, no te imaginas cuanto te lo agradezco ..  quisiera devolverte el favor de alguna forma, si tenes pagina web dame un banner o link y te la promociono agregandola al sistema de ads de mi foro ..

te debo una hermano.