Jump to content

$_SERVER['PHP_SELF'] wrong link, need help


Recommended Posts

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 by Kerm (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...