|
Posted by Michael Satterwhite on 08/23/06 19:28
This is something I always have trouble keeping straight. Assume I have a
file tree as follows:
/home
/home/me
/home/me/public_html
/home/me/public_html/dir1
/home/me/public_html/dir2
My web pages are under either public_html or public_html.dir1. If I want to
create a file under public_html/dir2, in php, is the correct command
$FL = fopen("/home/me/public_html/dir2.filename", "w");
-or-
$FL = fopen("/dir2.filename", "w");
What effect does "open_basedir" have on this - and how can I, as a PHP user
be sure how this parameter is set.
Thanks in advance, everyone.
---Michael
[Back to original message]
|