Connecting Tech Pros Worldwide Help | Site Map

calling binaries from PHP

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:29 PM
Tefla
Guest
 
Posts: n/a
Default calling binaries from PHP

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, 01:29 PM
Daniel Tryba
Guest
 
Posts: n/a
Default 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, 01:29 PM
Tefla
Guest
 
Posts: n/a
Default 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, 01:29 PM
Andy Hassall
Guest
 
Posts: n/a
Default 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, 01:29 PM
CJ Llewellyn
Guest
 
Posts: n/a
Default 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.




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

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 220,989 network members.