Topic: Uploaded Photo URL

Hello, here is my site http://imageul.co.cc/ I can upload an image fine, but when it comes to looking at the url's they all end up with \ instead of /

Example;
Doesn't Work - http://imageul.co.cc\?v=avatarviv.png
Works - http://imageul.co.cc/?v=avatarviv.png

Been wondering how to fix the for hours, finally turned to the forums, here is my .PHP files; http://imageul.co.cc/php.zip

Thanks In Advance!

Last edited by Callum Catterall (2011-06-07 14:34:46)

Thumbs up

Re: Uploaded Photo URL

please, do the same thing as I mentioned in this topic :

http://chevereto.com/forums/topic906-ba … slash.html

~ Sup?!

Thumbs up

Re: Uploaded Photo URL

Danny.Domb wrote:

please, do the same thing as I mentioned in this topic :

http://chevereto.com/forums/topic906-ba … slash.html

http://imageul.co.cc/whatever.php - has the \ not / is their a code wrong somewhere?

Thumbs up

Re: Uploaded Photo URL

Here is a quick fix, I will take a look into the real problem later:

Find

///////////////////////////////
/// 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', $path);
}

replace with

///////////////////////////////
/// DO NOT TOUCH BELOW THIS ///
///////////////////////////////

// PATH
/* Uhhh.. Can't touch this!. */
define('PATH_SCRIPT', '/');
~ Sup?!

Thumbs up

Re: Uploaded Photo URL

Danny.Domb wrote:

Here is a quick fix, I will take a look into the real problem later:

Find

///////////////////////////////
/// 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', $path);
}

replace with

///////////////////////////////
/// DO NOT TOUCH BELOW THIS ///
///////////////////////////////

// PATH
/* Uhhh.. Can't touch this!. */
define('PATH_SCRIPT', '/');

Worked Perfectly, Thanks.

Thumbs up