By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,761 Members | 1,193 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,761 IT Pros & Developers. It's quick & easy.

calling binaries from PHP

P: n/a
Hi folks,
i'm writing a simple tool for people in my work place, so they can
easily access an SubVersioN repository. basicly, all the developers and
designers have apache and a local version of there site.

it all works fine, but at the moment i'm using an svn executable to do
the dirty work! apart from the problem of cross plateform binaries, is
it a portable way to write a bit of software? would this work without
modification (or even at all) on a server wit different config (like a
shared web server) ?

Thanks for any input you may have.

-Tefla

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Tefla <zi*******@gmail.com> wrote:
i'm writing a simple tool for people in my work place, so they can
easily access an SubVersioN repository. basicly, all the developers
and designers have apache and a local version of there site.


You you are reinventing websvn (http://websvn.tigris.org/)?

Jul 17 '05 #2

P: n/a
i didn't really explain the app properly, but no it isn't a copy of
websvn, but a all in one tool for development and distribution.

but really my question was, how reliable is calling binaries from PHP?

Thanks

-Tefla

Jul 17 '05 #3

P: n/a
On 6 Jun 2005 06:17:02 -0700, "Tefla" <zi*******@gmail.com> wrote:
i'm writing a simple tool for people in my work place, so they can
easily access an SubVersioN repository. basicly, all the developers and
designers have apache and a local version of there site.

it all works fine, but at the moment i'm using an svn executable to do
the dirty work! apart from the problem of cross plateform binaries, is
it a portable way to write a bit of software? would this work without
modification (or even at all) on a server wit different config (like a
shared web server) ?


See the recent "exec, passthru disabled so how to call C++ .exe file?" thread
which illustrates that some hosts may disable the functions you'd need to call
external programs.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4

P: n/a
On Mon, 06 Jun 2005 10:29:11 -0700, Tefla wrote:
i didn't really explain the app properly, but no it isn't a copy of
websvn, but a all in one tool for development and distribution.

but really my question was, how reliable is calling binaries from PHP?


As reliable as you make it.

<?php

$foo = '/dev/null; rm -rf /var/www/html';

exec("mv /tmp/a.file $foo");

?>

Warning please don't try the above code at home.


Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.