Back to start page
 

fairio customer menu
WebhostingDomainsTech InfoFAQContactSupport
Is your domain name still free?
 All fairio domain endings at a glance  
 

fairio Fullservice

fairio Free phone

fairio Security

 

 

 

 
 

PHP Overview

  1. Parse PHP
    How can I parse other file endings via PHP?

  2. PHP Settings
    What PHP settings are on the server?

  3. Changing PHP Settings
    I would like to change my PHP Settings for my account. How do I do it?

  4. Safe Mode
    PHP - is the safe mode activated?



Parse PHP

How can I parse other file endings via PHP?

 

 

Create a .htaccess file in the corresponding directory

 

contents for php4:

<-- Code Start -->

# List of file endings to be processed as PHP4

AddHandler php-fastcgi4 .php .php4 .phtml

<-- Code End -->

 

or if using php5:

 

<-- Code Start -->

#  List of file endings to be processed as PHP5

AddHandler php-fastcgi5 .php .php5 .phtml

<-- Code End -->

 

 

If .html are to be processed as PHP, it is done as follows:

<-- Code Start -->

# List of file endings to be processed as PHP4

AddHandler php-fastcgi4 .php .php4 .phtml .html

<-- Code End -->




PHP Settings

 

What PHP settings are on the server?

 

Top    




PHP Settings

I would like to change my PHP Settings for my account. How do I do it?

 

Create a file with the name php.ini above your "www.yourdomain.com"

folder - thus in your root folder. 

 

IMPORTANT!

This php.ini only contains the settings you wish to change and some important settings that can be found in the following example:

 

PHP4

In the following example, we will change the register globals from „On“ to „Off“ using php.ini:

 

register_globals = Off

; never change anything beyond this point

[Zend]

zend_extension="/usr/local/Zend/lib/eaccelerator_4.so"

eaccelerator.shm_size="8"

eaccelerator.cache_dir="/tmp/"

eaccelerator.enable="1"

eaccelerator.optimizer="1"

eaccelerator.check_mtime="1"

eaccelerator.debug="0"

eaccelerator.filter=""

eaccelerator.shm_max="75K"

eaccelerator.shm_ttl="30"

eaccelerator.shm_prune_period="30"

eaccelerator.shm_only="1"

eaccelerator.compress="1"

eaccelerator.compress_level="9"

eaccelerator.keys="none"

eaccelerator.sessions="none"

eaccelerator.content="shm"

zend_optimizer.optimization_level=15

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so

zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer

zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS

 

 

 

Important:

All settings, concerning execution times and memory limits, cannot be changed.

 

PHP5

In the following example, the we will change the register globals from „On“ to „Off“ using php.ini:

 

register_globals = Off

; never change anything beyond this point

[Zend]

zend_optimizer.optimization_level=15

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so

zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer

zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS

 

Important:

All settings, concerning execution times and memory limits, cannot be changed.

 

Top    




Safe Mode

 

PHP - is the safe mode activated?

 

The safe mode is deactivated.

 

Top