View Single Post
Old January 9th, 2007, 7:45 PM   #6 (permalink)
m0nty
Registered User
Seasoned Poster
 
m0nty's Avatar
 
Joined in Jun 2005
Lives in Derbyshire/UK
Hosted on sh106
90 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
how do you set php directives in php.ini when using php 5?

i have php.ini files in my site (it's hosted on a shared reseller server) serva.

example:

register_globals = 0
allow_url_fopen = 0
session.use_only_cookies = 1
post_max_size = 64M
upload_max_filesize = 10M

the above works fine when i'm using php 4 as default. but as a couple of new modules i now use etc require PHP 5, i am now using php5. altho i have not renamed all the extensions to .php5 (couldn't be bothered as it's too much trouble) instead i use .htaccess with the following >

RewriteEngine On
AddHandler application/x-httpd-php5 .php

but after doing that the php settings in the php.ini file no longer work.

also i have noticed, that since changing to use php5, i now have to set folder permissions to 777 in order for the script to be able to write to those folders.. on php4, i can set them to 755 (which is more secure)
__________________
Smartfactory.ca Module Development Team.
ImpressCMS.org Impress CMS Project: Making a lasting impression!

surpass server: SH106
m0nty is offline   Reply With Quote