Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] pytanie o wersje php
klinski
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 22.03.2007

Ostrzeżenie: (0%)
-----


Witam

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>
Powód edycji: dodalem bbcode (cysiaczek)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 11:18