Kerm Posted September 18, 2012 Share Posted September 18, 2012 (edited) Hello all, I know it's not prestashop problem, but may be some one help me with that... $_SERVER['PHP_SELF'] gives wrong link and bc of that some modules work not correct, like blocklanguages. Example: I put file test.php with that code: <? echo $_SERVER[php_SELF]; echo "<br>" ; echo $_SERVER['PHP_SELF']; ?> In root folder, like www.site.ru/test.php And what i see: /test.php/test.php /test.php/test.php Must be just /test.php...why that happen? Php version: php.i686 0:5.3.16-9 php-cli.i686 0:5.3.16-9 php-common.i686 0:5.3.16-9 php-devel.i686 0:5.3.16-9 php-fpm.i686 0:5.3.16-9 php-pdo.i686 0:5.3.16-9 php-sqlite.i686 0:5.3.16-9 php-xml.i686 0:5.3.16-9 php-mysql.i686 0:5.3.16-9 php-mcrypt.i686 0:5.3.16-9 php-mbstring.i686 0:5.3.16-9 php-intl.i686 0:5.3.16-9 php-gd.i686 0:5.3.16-9 Edited September 18, 2012 by Kerm (see edit history) Link to comment Share on other sites More sharing options...
EngkusKusnadi Posted September 19, 2012 Share Posted September 19, 2012 you can used code $_SERVER['SERVER_NAME']."test.php"; to show your www.site.ru/test.php Link to comment Share on other sites More sharing options...
Kerm Posted September 22, 2012 Author Share Posted September 22, 2012 Thx for answer but if I put file in www.site.ru/folder/test.php? What link I will see then? Same www.site.ru/test.php? Link to comment Share on other sites More sharing options...
vekia Posted September 22, 2012 Share Posted September 22, 2012 Thx for answer but if I put file in www.site.ru/folder/test.php? What link I will see then? Same www.site.ru/test.php? you can also use the prestashop default constants Link to comment Share on other sites More sharing options...
Kerm Posted September 22, 2012 Author Share Posted September 22, 2012 Like what? Link to comment Share on other sites More sharing options...
Recommended Posts