Thử thêm cái coi lào
Feb
14
How to configure your account to use PHP 4 on server using PHP5
hrockvn , 14:00 , Networking , Nhận xét: (0) , Trích dẫn: (0) , Đọc: (725) , Via Tự viết
Lớn | Vừa | Nhỏ
Lớn | Vừa | Nhỏ
All of our shared and reseller servers now have both PHP 4 and PHP 5 installed. By default the server will use PHP 4 to process PHP pages. You can easily configure your account to use PHP 5 by adding a line to the apache .htaccess file for your account. The command to add will depend on whether your server is configured to run under phpsuexec.
The first step is to find out if your server is using phpsuexec. This can be done by creating a simple 'php info' script.
Create a file in the public_html folder of your site named 'phpinfo.php' and insert the following:
Load the file in your browser and in the top section find the line 'Server API'. If it shows 'CGI' then your account is on a server with phpsuexec. If it lists the server API as 'apache' you are not on a phpsuexec server.
The next step is to add the appropriate command to your .htaccess file. For the primary domain name on an account the .htaccess file should be located in the public_html folder. Create the file if it does not exist. Place one of the following commands in the file:
If your account is not on a phpsuexec server use:
AddType application/x-httpd-php5 .php
If your account is on a phpsuexec server use:
AddHandler application/x-httpd-php5 .php
Please note, PHP 5 will not work work using a temporary URL. PHP 5 is only accessible when using the domain name to access your account.
UPDATE:
All shared and reseller servers are now phpsuexec. This means you will not need to create a php info page. All you will need to do is add the following line to your htaccess
AddHandler application/x-httpd-php5 .php
Also, the cpanel software runs using PHP 4 so will always reflect that information. PHP 5 will only be used for your own scripts.
The first step is to find out if your server is using phpsuexec. This can be done by creating a simple 'php info' script.
Create a file in the public_html folder of your site named 'phpinfo.php' and insert the following:
Code:
<?php
phpinfo();
?>
The next step is to add the appropriate command to your .htaccess file. For the primary domain name on an account the .htaccess file should be located in the public_html folder. Create the file if it does not exist. Place one of the following commands in the file:
If your account is not on a phpsuexec server use:
AddType application/x-httpd-php5 .php
If your account is on a phpsuexec server use:
AddHandler application/x-httpd-php5 .php
Please note, PHP 5 will not work work using a temporary URL. PHP 5 is only accessible when using the domain name to access your account.
UPDATE:
All shared and reseller servers are now phpsuexec. This means you will not need to create a php info page. All you will need to do is add the following line to your htaccess
AddHandler application/x-httpd-php5 .php
Also, the cpanel software runs using PHP 4 so will always reflect that information. PHP 5 will only be used for your own scripts.
THIẾT LẬP MẠNG WIFI CHIA SẺ LAN VÀ INTERNET KHÔNG CẦN ACSESS POINT.
Config phpMyadmin voi MySQL
