|
-
May 4th, 2004, 12:19 PM
#1
Thread Starter
Frenzied Member
PHP ini [resolved]
where is it stored?
How can I change it to allow files to be created/read/appended through PHP.
Am I being stupid?
BTW. This is a friends server, I don't know if I have access to it. But where is it normally stored?
Last edited by Acidic; May 4th, 2004 at 03:36 PM.
Have I helped you? Please Rate my posts. 
-
May 4th, 2004, 12:21 PM
#2
C:\WINNT\PHP.INI on Windows 2000.
What sort of files do you want "created/read/appended" through PHP? I think it's all a matter of local permissions whether you can actually create or append files or read them.
-
May 4th, 2004, 12:24 PM
#3
Thread Starter
Frenzied Member
it's a linnux server, sorry I should have mentioned that.
I only want to create .txt files. I can on my localhost, so I know the script works. on the server I get access denied.
Have I helped you? Please Rate my posts. 
-
May 4th, 2004, 12:42 PM
#4
You mayneed to CHMOD the directory you want to write to to make sure you can write to it. Right now it probably only has Execute/Read permissions.
TG
-
May 4th, 2004, 12:58 PM
#5
The default PHP.ini location on Linux is:
/usr/local/lib/php.ini
I doubt a standard user will have write access to it though.
You are probably getting Access Denied becuase PHP is running under the same user id as the web server. The web server use has very limited permissions for obvious reasons. A file that can be written by the web server use can potentially be written by anyone.
You'll need some more information on how the server is
configured.
- Web server software the server is running.
- Whether or not PHP is configured as a web server module or run as a separate CGI program.
- Does the web server use a CGI wrapper or have the ability to run modules as a different user and group.
-
May 4th, 2004, 03:36 PM
#6
Thread Starter
Frenzied Member
OK. I've looked and really can't find it. I doubt my friend has access to it.
Have I helped you? Please Rate my posts. 
-
May 4th, 2004, 03:53 PM
#7
Did you CHMOD the directory in which you want to write a file?
If this isn't working with your webhost, you should consider using their MySQL db, which they will most likely have.
-
May 4th, 2004, 04:58 PM
#8
Originally posted by Acidic
OK. I've looked and really can't find it. I doubt my friend has access to it.
I forgot to say this earlier. But use the phpinfo() fucntion. It will tell you everything you need to know including the path of the php.ini.
PHP Code:
<?php
phpinfo ();
?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|