search for: shell_exec

Displaying 13 results from an estimated 13 matches for "shell_exec".

2007 Oct 04
4
Using PHP to reload extensions
...le to connect to remote asterisk (does /var/run/asterisk.ctl exist?) when I run the script by visiting the URL; however, if I run the script from the command line, it runs just fine (works perfect, actually). I think it is permissions related. Does anyone have any ideas? <php $output = shell_exec('asterisk -rx"extensions reload"'); echo $output; ?> Yours, Michael Munger, dCAP 404-438-2128 michael at highpoweredhelp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attac...
2010 Feb 08
7
Running wine via php
Hi, I'm trying to run a command with wine via php: Code: <?php $test = shell_exec('wine c:\\\\.exe'); echo $test; ?> [/code]
2010 May 17
0
Re : append new line in existing graph
Dear All, I am executing my R script from PHP using the shell_exec. $return = shell_exec("/usr/bin/R --slave --args ".$Domain.",".$Gender." < /var/www/html/trends/newTrend.R"); In newTrend.R, I am plotting graph and save in pdf file using the below code. It will create a pdf file with two line. pdf(file="/var/www/html/trend...
2010 Aug 02
3
FAX Options
Hi, Is FAXing with Asterisk a practical option ? Or is it better just to use a plain fax connected to an FXS and just switch with Asterisk. I specifically wanted to know if there was any experience using just the fax scanner to send faxes and receive them via asterisk and the to e-mail. My idea was to take my old fax connect it to an FXS port and send faxes with the fax machine (using the fax
2003 Apr 29
0
calling R from PHP and saving outputs
...uot;/usr/lib/R/bin/R"; $this->sortie = $this->calcul(); } function calcul() { $cmd = <<<EOD echo 'source("commande.R")' | $this->RPath --slave EOD; echo "\n"; echo $cmd."\n"; $result = shell_exec($cmd); echo($result); return ($result); } } $essai = new Essai(); ?> <table border='2' cellpadding='5'> <tr> <th align='right'> ESSAI : </th> <td> ... </td> <td> <?php echo($essai->sortie); ?> &lt...
2008 Jun 13
1
String "fwrite();" causes 503 error (Passenger or apache?)
Hi, While testing a rails application on DreamHost (mod_rails), I found a really weird problem. If I submit form data which includes "fwrite();" (with semi-colon but without quotes), I get 503 error (Server temporarily unavailable). I checked out rails log file and it didn''t even reach the rails app. I assume the error was from web server. You may test this at
2014 May 25
2
Keeping icecast + ices 2.X running on a strict schedule?
Hello, Regarding accounting for track lengths, could sox (soxi) be getting it wrong? Here's my approach atm: $lengths = array(); foreach($files as $val) { //Note that $files has already been populated by glob() $temp = explode(":", shell_exec('soxi -d "'.$val.'"')); $length = $temp[0] * 60 * 60;//convert the hours to seconds. $length += ($temp[1] * 60);//convert minutes to seconds $length += $temp[2];//add the seconds $length *= 1000;//convert to milliseconds. $lengths[$val] = $length; } With that done, I can...
2014 May 26
2
Keeping icecast + ices 2.X running on a strict schedule?
...le? > > Hello, > Regarding accounting for track lengths, could sox (soxi) be getting it > wrong? > Here's my approach atm: > $lengths = array(); > foreach($files as $val) > { > //Note that $files has already been populated by glob() > $temp = explode(":", shell_exec('soxi -d "'.$val.'"')); > $length = $temp[0] * 60 * 60;//convert the hours to seconds. > $length += ($temp[1] * 60);//convert minutes to seconds > $length += $temp[2];//add the seconds > $length *= 1000;//convert to milliseconds. > > $lengths[$val] = $len...
2014 May 26
0
Keeping icecast + ices 2.X running on a strict schedule?
...icecast + ices 2.X running on a strict schedule? Hello, Regarding accounting for track lengths, could sox (soxi) be getting it wrong? Here's my approach atm: $lengths = array(); foreach($files as $val) { //Note that $files has already been populated by glob() $temp = explode(":", shell_exec('soxi -d "'.$val.'"')); $length = $temp[0] * 60 * 60;//convert the hours to seconds. $length += ($temp[1] * 60);//convert minutes to seconds $length += $temp[2];//add the seconds $length *= 1000;//convert to milliseconds. $lengths[$val] = $length; } With that done, I can...
2005 Jan 24
3
changing ldap passwords?
Samba experts, I am using Samba 3.0.8 on an AIX 5.1 system with ldap authentication. I have ldap working so that users can authenticate in their samba account via ldap. However, I am trying to figure out the best method for allowing users to change their ldap samba account password. What is the best method to allow end users to change their LM/NT passwords for Samba via LDAP? Should
2014 May 26
0
Keeping icecast + ices 2.X running on a strict schedule?
...cecast + ices 2.X running on a strict schedule? Hello, Regarding accounting for track lengths, could sox (soxi) be getting it wrong? Here's my approach atm: $lengths = array(); foreach($files as $val) { //Note that $files has already been populated by glob() $temp = explode(":", shell_exec('soxi -d "'.$val.'"')); $length = $temp[0] * 60 * 60;//convert the hours to seconds. $length += ($temp[1] * 60);//convert minutes to seconds $length += $temp[2];//add the seconds $length *= 1000;//convert to milliseconds. $lengths[$val] = $length; } With that done, I ca...
2014 May 25
2
Keeping icecast + ices 2.X running on a strict schedule?
Hello, Icecast and Ices are running on the same machine and it is a dedicated server. It is a Xeon 1270 V2 CPU with 16 GB ram running Centos 64-bit. Any thoughts on which settings I could try next? I have tried everything that appears to relate to the speed at which the stream occurs to no avail. One point I forgot to mention is that some tracks bring on more deviation than others. Shorter tracks,
2006 Jun 22
9
Apache Security
Hello, I have a server running CentOS 4.3 with all the latest updates. The server in question has been hacked by spammers a few times. The details of the hack have been basically the same every time. I find some directory created by the apache user account in /tmp. The new directory contains an html file, and a list of email addresses to spam and a perl script that spams all those email