Connecting Tech Pros Worldwide Help | Site Map

calling binaries from PHP

Tefla
Guest
 
Posts: n/a
#1: Jul 17 '05
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

Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: calling binaries from PHP


Tefla <zigomushy@gmail.com> wrote:[color=blue]
> 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.[/color]

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

Tefla
Guest
 
Posts: n/a
#3: Jul 17 '05

re: calling binaries from PHP


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

Andy Hassall
Guest
 
Posts: n/a
#4: Jul 17 '05

re: calling binaries from PHP


On 6 Jun 2005 06:17:02 -0700, "Tefla" <zigomushy@gmail.com> wrote:
[color=blue]
>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) ?[/color]

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 / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
CJ Llewellyn
Guest
 
Posts: n/a
#5: Jul 17 '05

re: calling binaries from PHP


On Mon, 06 Jun 2005 10:29:11 -0700, Tefla wrote:
[color=blue]
> 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?[/color]

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.




Closed Thread