[PHP] not sure, what now

2006-02-25 Thread Schalk
Greetings All, I am pretty new to PHP and are tasked to move a clients site from: www.domain.com/somedirectory/home.php to www.home.php Sounds simple at first but, when I moved the files to the root of the httpdocs I get an array of errors in the vain of: *Warning*: main(): open_basedir

Re: [PHP] not sure, what now

2006-02-25 Thread Rory Browne
On 2/25/06, Schalk [EMAIL PROTECTED] wrote: Greetings All, I am pretty new to PHP and are tasked to move a clients site from: www.domain.com/somedirectory/home.php to www.home.php Is there a .php tld? Sounds simple at first but, when I moved the files to the root of the httpdocs I get

Re: [PHP] not sure, what now

2006-02-25 Thread chris smith
On 2/26/06, Schalk [EMAIL PROTECTED] wrote: Greetings All, I am pretty new to PHP and are tasked to move a clients site from: www.domain.com/somedirectory/home.php to www.home.php If you're moving a clients site wouldn't your work be a better place to ask? They will have processes etc to

Re: [PHP] not sure, what now

2006-02-25 Thread Schalk
chris smith wrote: On 2/26/06, Schalk [EMAIL PROTECTED] wrote: Greetings All, I am pretty new to PHP and are tasked to move a clients site from: www.domain.com/somedirectory/home.php to www.home.php If you're moving a clients site wouldn't your work be a better place to ask? They

Re: [PHP] not sure, what now

2006-02-25 Thread chris smith
Where is Open_basedir set? In a global php setting or can it be done site by site? And if so, what is the most logical place to put the file that controls this? It's set by apache and unless you have root access you don't have any control over it. Re-read the error message, php tells you all

Re: [PHP] not sure, what now

2006-02-25 Thread Richard Lynch
Find your php.ini and read it. Actually, find your httpd.conf and read it, because you can change JUST DocumentRoot in httpd.conf, and not move any files around. 'Course, you'll have to put the files back, but you won't have to change any of the paths embedded in the PHP web application. On

Re: [PHP] not sure, what now

2006-02-25 Thread Michael Hulse
On Feb 25, 2006, at 2:22 PM, Schalk wrote: *Warning*: main(): open_basedir restriction in effect. File(../inc/siteconfig.php) is not within the allowed path(s): (/home/httpd/vhosts/sealbeachprofessionals.com/httpdocs:/tmp) in /home/httpd/vhosts/sealbeachprofessionals.com/httpdocs/home.php on

Re: [PHP] not sure, what now

2006-02-25 Thread Michael Hulse
To be more specific: Based on error message you posted: #Start from server root: include($_SERVER['DOCUMENT_ROOT'].'/inc/siteconfig.php'); Hth, gl, M On Feb 25, 2006, at 7:31 PM, Michael Hulse wrote: Try changing all includes that look like this: include('/folder/file.php'); ... to this: