Czy jest możliwe gdy na serwerze sa zainstalowane dwie wersje php (4 i 5) i otwierając strone na rożnych komputerach był używany raz php4 a innym razem php5.
na serwerze jest .htacces i wyglada tak:
Kod
<span style="font-weight: bold;"><a href="http://pl.php.net/Options +FollowSymLinksErrorDocument 404 /index.phpDirectoryIndex index.php index.html<IfModule mod_php4.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0</IfModule><IfModule sapi_apache2.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0</IfModule><IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0</IfModule><IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d</IfModule><Files "index"> ForceType application/x-httpd-php</Files>php_flag register_globals onphp_value session.save_path "/tmp/"" title="Zobacz w manualu PHP" target="_manual">
Options +FollowSymLinks
ErrorDocument 404 /index.php
DirectoryIndex index.php index.html
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>
<Files "index">
ForceType application/x-httpd-php
</Files>
php_flag register_globals on
php_value session.save_path "/tmp/"
</a></span>
Options +FollowSymLinks
ErrorDocument 404 /index.php
DirectoryIndex index.php index.html
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>
<Files "index">
ForceType application/x-httpd-php
</Files>
php_flag register_globals on
php_value session.save_path "/tmp/"
</a></span>