calling binaries from PHP 
July 17th, 2005, 02:29 PM
| | | |
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 | 
July 17th, 2005, 02:29 PM
| | | | 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/)? | 
July 17th, 2005, 02:29 PM
| | | | 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 | 
July 17th, 2005, 02:29 PM
| | | | 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 | 
July 17th, 2005, 02:29 PM
| | | | 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. |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,702 network members.
|