Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem installing SVN PHP extension via PEAR in Mac OS

Victor
Guest
 
Posts: n/a
#1: Mar 30 '08
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

David Gillen
Guest
 
Posts: n/a
#2: Mar 31 '08

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


On Sun, 30 Mar 2008 Victor <joyfulnerd@gmail.comwrote:
Quote:
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/packag...ontrol-svn.php for
further examples of it's use.

D.
Closed Thread