Problem installing SVN PHP extension via PEAR in Mac OS

Hi,

1. I'm a PHP newbie looking for some help with the SVN PHP extension.

I installed the SVN extension in Mac OS 10.5 (Leopard) using the PEAR
command line.

2. Whenever I ran the following code:
<?php
#phpinfo();
print_r( svn_ls('http://www.example.com/svnroot/') );
?>

The browser says:
Fatal error: Call to undefined function svn_ls() in /Users/limkl/Sites/
test.php on line 3

When I ran phpinfo(), the SVN extension does not show up under
Additional Modules.

3. I know this is a sign that the installed extension not taking
effect.

Yes, I did remember to restart the built-in Apache using 'sudo
apachectl restart'.

Also, I have doublechecked /etc/php.ini that dynamic loading (DL) is
On and extension=svn.so is added.

4. Question: Does this mean I have to recompile PHP?

Thanks,
Victor
Victor [ So, 30 März 2008 07:18 ] [ ID #1931768 ]

Re: Problem installing SVN PHP extension via PEAR in Mac OS

On Sun, 30 Mar 2008 Victor <joyfulnerd [at] gmail.com> wrote:
> Hi,
>
> 1. I'm a PHP newbie looking for some help with the SVN PHP extension.
>
> I installed the SVN extension in Mac OS 10.5 (Leopard) using the PEAR
> command line.
>
> 2. Whenever I ran the following code:
><?php
>#phpinfo();
> print_r( svn_ls('http://www.example.com/svnroot/') );
> ?>
>
Add the line
require_once 'VersionControl/SVN.php';
At the start of your script, otherwise the functionality won't be available to
you.
See http://pear.php.net/manual/en/package.tools.versioncontrol-s vn.php for
further examples of it's use.

D.
David Gillen [ Mo, 31 März 2008 11:06 ] [ ID #1933051 ]
PHP » comp.lang.php » Problem installing SVN PHP extension via PEAR in Mac OS

Vorheriges Thema: question about select tag in php
Nächstes Thema: Re: PHP file 'Hello.php" is not writing anything when run through IE