Connecting Tech Pros Worldwide Help | Site Map

calling binaries from PHP

  #1  
Old July 17th, 2005, 02:29 PM
Tefla
Guest
 
Posts: 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

  #2  
Old July 17th, 2005, 02:29 PM
Daniel Tryba
Guest
 
Posts: n/a

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/)?

  #3  
Old July 17th, 2005, 02:29 PM
Tefla
Guest
 
Posts: n/a

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

  #4  
Old July 17th, 2005, 02:29 PM
Andy Hassall
Guest
 
Posts: n/a

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
  #5  
Old July 17th, 2005, 02:29 PM
CJ Llewellyn
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with exec JahMic answers 7 December 1st, 2007 10:35 AM
Ruby/Python/REXX as a MUCK scripting language Tony Belding answers 12 December 1st, 2006 06:45 PM
Why doesn't strrstr() exist? Christopher Benson-Manica answers 149 November 15th, 2005 03:33 AM