View Single Post
Old October 20th, 2006, 1:18 AM   #2 (permalink)
jaeSun
Registered User
Comfy Contributor
 
Joined in Jun 2004
Hosted on Sync
228 posts
Gave thanks: 3
Thanked 0 times
i tried to edit the post, but can't. here it is again, since i have more questions. might as well keep it in one thread

================================================

in the sticky about phpsuexec:

Quote:
note: you MUST use proper [sections], just like the master php.ini file. You can override any php directive in this manner, though sensible web hosts will have disabled the dangerous ones. Currently, at least on my host, the php.ini values don't cascade down through the tree, though I'm assured they are looking for a fix. placing php.in files in EVERY directory seems a daunting task, indeed, we'll see.
do we have to create php.ini files and put it in all the directories?

also, i've noticed, running php5, phpsuexec seems to be in effect.

putting this in my .htaccess file in the root directory:

Code:
AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php
then, running this code:

PHP Code:
echo 'php is running as user: ' exec('whoami'); 
outputs: php is running as user: whiteazn

so, phpsuexec in effect. also running PHP Version 5.1.4

take out the .htaccess file, and its running PHP4, and

php is running as user: nobody

but, in both cases when using php4 and php5,

I try creating a php.ini file:

Code:
; php directives

{php}
register_globals = Off
upload_max_filesize = 50M
post_max_size = 50M

{session}
session.use_trans_sid = 0
In the above code, substitute {} with [] for the sections

but it doesn't change the values when checking phpinfo()

i cannot create a .htaccess file to try and set the values, but that should be correct (as in the sticky in the forum: 4. No php_value entries should be given in the .htaccess file. All such entries can be given on a php.ini file instead ..)

how am i creating the file wrong? I create php.ini in notepad on windows, and upload it with dreamweaver. that have anything to do with it?
__________________
www.whiteAzn.com

Server: VPSsomething
IP: 66.7.200.42
jaeSun is offline   Reply With Quote