|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
1. I'm a PHP newbie looking for some 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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Sun, 30 Mar 2008 Victor <joyfulnerd@gmail.com> wrote:
> Hi, > > 1. I'm a PHP newbie looking for some 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. |
|
![]() |
| Outils de la discussion | |
|
|