473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Mar 30 '08 #1
1 2740
On Sun, 30 Mar 2008 Victor <jo********@gmail.comwrote:
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.
Mar 31 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
3
by: Jan Holland | last post by:
I am trying to install pear on a shared server/host following the instructions from: <http://uk.builder.com/architecture/web/0,39026570,20283197,00.htm> So I made a subdir on my site like:...
0
by: Michel P. | last post by:
Hi, I'm trying to install the bcompiler extension, under PHP 5.0.4 / Apache / FreeBSD, but can't finalize the install process... Has anybody allready done it ? I'm using the recommended...
0
by: metin | last post by:
When I want to install php after the commands ../configure --with-apxs2=/www/bin/apxs --with-mysql and make without any error, when i type make install i have the following error: Installing...
3
by: joshua.wehner | last post by:
I can't seem to get PEAR to work, but I think it's installed. Any ideas? phpinfo() says '--with-pear=/usr/local/apache/php-pear' $ which pear /usr/local/bin/pear $ pear list Installed...
1
by: zpinhead | last post by:
I am unable to get my downloaded extension from pecl to link up with php properly. seems like the php.so I could not use pear install http. pear claimed the extension was already installed....
0
by: mchristopher | last post by:
I'm having trouble compiling DOM XML support into PHP 4.4.2 on CentOS 4.3. Everytime I attempt to compile, it spits back this: .... chmod 755 /usr/lib/apache/libphp4.so Installing PHP CLI...
1
by: Paul | last post by:
I just installed php 4.4 with apache 2.0 on WIN XP. All is working so far. From: the prompt, I type: go-pear and here's what I get: Loading zlib: ok Using local package: PEAR-stable......ok...
3
by: Dhr von der Slahp | last post by:
Hi, Anyone got any clues on how to install the SOAP extension in PHP 5.2.0? Do I have to recompile PHP and then reinstall it, or is it simpler than that? Are there any URLs that explain the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.