Re: errors running go.pear on windows - cannot write to $pathIni
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Fri, 26 Nov 2004 19:05:07 +0000 |
| Subject: | Re: errors running go.pear on windows - cannot write to $pathIni | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15841@lists.php.net to get a copy of this message | ||
Any solution to this? I have the exact same problem
thanks
graham
Stowe Spivey wrote:
> I am setting up a development environment.
> I installed php version 4.3.8 using windows installer. It's
> installed at c:php. The ini file has:
> include_path = ".;c:phpincludes", and I created a directory called
> "includes" there to match the ini file.
> I then went to go-pear.com and saved it as "go-pear.php". I then
> started a command prompt and wen to the directory where go-pear.php
> was and ran from the command prompt, php go-pear.php.
> The screen scrolled lines and lines of code then stopped with the
> code below as errors.
> Any ideas of what I need to do? Many thanks for your help.
>
**********************************************************************WARNING!
> I cannot write to $pathIni nor in $prefix/php.ini-gopear. Please
> modify manually your php.ini by adding:
> $includepath
> ";
> return false;
> } else {
> fwrite($fh, $newIni, strlen($newIni));
> fclose($fh);
> echo
> "
>
**********************************************************************WARNING!
> I cannot write to $pathIni, but I succesfully created a php.ini
> under <$prefix/php.ini-gopear>. Please replace the file
> <$pathIni> with <$prefixIni> or modify your php.ini by
> adding:
> $includepath
> ";
> }
> } else {
> fwrite($fh, $newIni, strlen($newIni));
> fclose($fh);
> echo "
> php.ini <$pathIni> include_path updated.
> ";
> }
> return true;
> }
> ?></PRE></BODY></HTML>
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com