[PHP] help with include
Hi, I need some help with the include function. I have a phpBB script and want to put the config.inc.php file in a password protected directory, Easy peasy you might say, and I know it is, but the problem comes because the password protected directory isn't on the site the script is on, mainly because the host says I've got to upgrade my account to use password protected dir's. I've got one site with a password protected dir available and would like to put it on there. Any idea's how to do it would be appreciated. Many thanks Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] help with include
I think you can use a URL when you specify your value in the include statement, can you not? [EMAIL PROTECTED] wrote: >Hi, I need some help with the include function. >I have a phpBB script and want to put the config.inc.php file in a password >protected directory, Easy peasy you might say, and I know it is, but the >problem comes because the password protected directory isn't on the site the >script is on, mainly because the host says I've got to upgrade my account to >use password protected dir's. >I've got one site with a password protected dir available and would like to >put it on there. > >Any idea's how to do it would be appreciated. > >Many thanks > >Brian > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] help with include
I have installed phpBB several times. Your problem should not be the password protected directory. The install.php script tries to wright into the config file. so, you have to chmod your file and give r/w access to everybody. once insallation is completed, then change it the was it was originally. if you give me the url, i can better understand your problem. erisen --- Brian's News <[EMAIL PROTECTED]> wrote: > Hi, I need some help with the include function. > I have a phpBB script and want to put the config.inc.php > file in a password > protected directory, Easy peasy you might say, and I know > it is, but the > problem comes because the password protected directory > isn't on the site the > script is on, mainly because the host says I've got to > upgrade my account to > use password protected dir's. > I've got one site with a password protected dir available > and would like to > put it on there. > > Any idea's how to do it would be appreciated. > > Many thanks > > Brian > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help with include path
Hi all, I just finished loading the OS to my PC once again, installed and configured IIS and then installed PHP 4 but now, every page I try to open tells me: Failed opening required '/icaam7/lib/stdlib.php' (include_path='.;c:\php4\pear') even when my php.ini (under Windows folder) tells me that the include_path is: include_path = ".;c:\php\includes;/" and no matter how I change this line in php.ini, the include_path appears to be set ONLY to c:\php4\pear Any ideas on how to change that??? Is there another php.ini file around? Thanks in advance --- Cesar Aracena [EMAIL PROTECTED] http://www.icaam.com.ar Cel: +54.299.635-6688 Tel: +54.299.477-4532 Fax: +54.299.477-7773 Cipolletti, Rio Negro R8324BEG Argentina --- Soluciones profesionales en Internet y Comunicaciones http://www.icaam.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with include path
Hi all, I'm sorry for this re-post, but I do need help with this URGENT... I just finished loading the OS to my PC once again, installed and configured IIS and then installed PHP 4 but now, every page I try to open tells me: Failed opening required '/icaam7/lib/stdlib.php' (include_path='.;c:\php4\pear') even when my php.ini (under Windows folder) tells me that the include_path is: include_path = ".;c:\php\includes;/" and no matter how I change this line in php.ini, the include_path appears to be set ONLY to c:\php4\pear Any ideas on how to change that??? Is there another php.ini file around? Thanks in advance --- Cesar Aracena [EMAIL PROTECTED] http://www.icaam.com.ar Cel: +54.299.635-6688 Tel: +54.299.477-4532 Fax: +54.299.477-7773 Cipolletti, Rio Negro R8324BEG Argentina --- Soluciones profesionales en Internet y Comunicaciones http://www.icaam.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with include path
Make a php file with nothing but this in it phpinfo(); ?> ...and hit that in your browser. It will tell you the location of the ini that it is using. César Aracena wrote: Hi all, I'm sorry for this re-post, but I do need help with this URGENT... I just finished loading the OS to my PC once again, installed and configured IIS and then installed PHP 4 but now, every page I try to open tells me: Failed opening required '/icaam7/lib/stdlib.php' (include_path='.;c:\php4\pear') even when my php.ini (under Windows folder) tells me that the include_path is: include_path = ".;c:\php\includes;/" and no matter how I change this line in php.ini, the include_path appears to be set ONLY to c:\php4\pear Any ideas on how to change that??? Is there another php.ini file around? Thanks in advance --- Cesar Aracena [EMAIL PROTECTED] http://www.icaam.com.ar Cel: +54.299.635-6688 Tel: +54.299.477-4532 Fax: +54.299.477-7773 Cipolletti, Rio Negro R8324BEG Argentina --- Soluciones profesionales en Internet y Comunicaciones http://www.icaam.com.ar -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with include path
> I just finished loading the OS to my PC once again, installed and > configured IIS and then installed PHP 4 but now, every page I try to open > tells me: > > Failed opening required '/icaam7/lib/stdlib.php' > (include_path='.;c:\php4\pear') Since there's a slash at the beginning, it's looking for c:\icaam7\lib\stdlib.php to require() into the file. Is that right, or should it be looking relative to the original file? > even when my php.ini (under Windows folder) tells me that the include_path > is: > > include_path = ".;c:\php\includes;/" > > and no matter how I change this line in php.ini, the include_path appears > to be set ONLY to c:\php4\pear > > Any ideas on how to change that??? Is there another php.ini file around? Did you restart your webserver? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with include path
On Sun, 2 Feb 2003, César Aracena wrote: > Hi all, > > I'm sorry for this re-post, but I do need help with this URGENT... > > I just finished loading the OS to my PC once again, installed and > configured IIS and then installed PHP 4 but now, every page I try to open > tells me: > > Failed opening required '/icaam7/lib/stdlib.php' > (include_path='.;c:\php4\pear') > > even when my php.ini (under Windows folder) tells me that the include_path > is: > > include_path = ".;c:\php\includes;/" > > and no matter how I change this line in php.ini, the include_path appears > to be set ONLY to c:\php4\pear > > Any ideas on how to change that??? Is there another php.ini file around? Have you compiled PHP to use the PATH to your php.ini, or is it using another one? Check to see if there's another php.ini lying around. -- Knut -- Knut H. Hassel Nielsen, [EMAIL PROTECTED] Divisional Engineer, Office : ITS 207 IDI NTNU, Sem Saelands vei 7-9 N-7491 Trondheim, Norway Phone (+47) 73 59 18 46 Fax (+47) 73 59 44 66 "And on the seventh day, He exited from append mode." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php