« Project home page

phpSQLiteCMS Forum

Back to the forum index
Linear

BASE_URL (Bugs)

by pangjanne, Thursday, February 25, 2010, 05:16 (196 days ago)

may be BASE_URL bug.
in windows, the dirname($_SERVER['PHP_SELF']) will return prefix '\' path;

then:
if(substr($base_url, -1) != '/') $base_url = $base_url.'/'; will return: 'http://hostname\/'.

my code:
$base_url = $protocol . $_SERVER['HTTP_HOST'] . str_replace('\\', '/', dirname($_SERVER['PHP_SELF']));

BASE_URL

by moho, Tuesday, April 20, 2010, 20:20 (142 days ago) @ pangjanne

I reported this bug as well. Another work around is to always set the Base_URL in settings. That is a much easier solution.

RSS Feed of thread
192 Postings in 89 Threads, 63 registered users, 7 users online (0 registered, 7 guests)
Forum time: 2010-09-09, 14:59
RSS Postings  RSS Threads | Contact
powered by my little forum