On 28 Oct 2011 at 16:01, Tedd Sperling wrote:
> On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote:
> But does having execute permissions set on a script affect the scripts ability
> to run shell commands?
No, as Dan has said. But if you have a file called wiggy, containing the
following:
#!
On Oct 28, 2011, at 11:07 AM, Daniel Brown wrote:
> On Fri, Oct 28, 2011 at 11:01, Tedd Sperling wrote:
>>
>> But does having execute permissions set on a script affect the scripts
>> ability to run shell commands?
>
>Negative. It won't inherit permissions, though one might expect
> that
On Fri, Oct 28, 2011 at 11:01, Tedd Sperling wrote:
>
> But does having execute permissions set on a script affect the scripts
> ability to run shell commands?
Negative. It won't inherit permissions, though one might expect
that to make sense.
> For example, if I have a script that contain
On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 19:44, Tedd Sperling wrote:
>>
>> One of the things I'm trying to understand is a php script can execute a
>> shell command, right? Is there a way via permissions to prevent that -- or
>> -- does that even have anything
On Oct 28, 2011, at 7:19 AM, Geoff Shang wrote:
> On Thu, 27 Oct 2011, Tedd Sperling wrote:
>
>> You answered a question I wasn't prepared to ask, which was "How can php
>> scripts be executed when their execute permissions aren't set?"
>
> Because as far as the system is concerned, the thing w
On Thu, 27 Oct 2011, Tedd Sperling wrote:
You answered a question I wasn't prepared to ask, which was "How can php
scripts be executed when their execute permissions aren't set?"
Because as far as the system is concerned, the thing which is being
executed is either PHP itself or something in
On Thu, Oct 27, 2011 at 19:44, Tedd Sperling wrote:
>
> One of the things I'm trying to understand is a php script can execute a
> shell command, right? Is there a way via permissions to prevent that -- or --
> does that even have anything to do with it? That's where I'm fuzzy.
Sure. What
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote:
>> That question begged the question of "What does execute mean?"
>
>It means "execute." Not to be confused with what others are
> mentioning here, which is "read and interpret." If you ru
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote:
>>
>> Ash:
>>
>> You answered a question I wasn't prepared to ask, which was "How can php
>> scripts be executed when their execute permissions aren't set?"
>>
>> That question begged the qu
On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote:
>
> Ash:
>
> You answered a question I wasn't prepared to ask, which was "How can php
> scripts be executed when their execute permissions aren't set?"
>
> That question begged the question of "What does execute mean?"
It means "execute."
On Oct 27, 2011, at 4:51 PM, Ashley Sheridan wrote:
> Yes, I just ran a quick test PHP script without any execute permissions set
> at all, only rw-rw-r-- and it ran just fine, suggesting it is just an
> argument as Larry said.
>
> I don't think Apache needs execute permissions set on PHP files
On Thu, 2011-10-27 at 14:41 -0600, Larry Martell wrote:
> On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling
> wrote:
> > Hi gang:
> >
> > Another question -- in the context of file permissions (rwx) is the execute
> > permission limited to shell commands -- Or -- is there more?
>
> Not sure I ful
On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling wrote:
> Hi gang:
>
> Another question -- in the context of file permissions (rwx) is the execute
> permission limited to shell commands -- Or -- is there more?
Not sure I fully understand your question, but to execute anything
directly - shell scri
Hi gang:
Another question -- in the context of file permissions (rwx) is the execute
permission limited to shell commands -- Or -- is there more?
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
On 12 Jun 2011, at 19:46, "techloop" wrote:
> Hi all,
>
> I have a simple code that override some env vars but i need it to run before
> any other php code on every php execution.
> I would like to avoid any change of all php code (even if its only to
> include the include command).
>
> Any o
On Jun 12, 2011, at 1:46 PM, techloop wrote:
I have a simple code that override some env vars but i need it to
run before
any other php code on every php execution.
Have you looked at http://us.php.net/manual/en/ini.core.php#ini.auto-prepend-file
?
--
PHP General Mailing List (http://w
Hi all,
I have a simple code that override some env vars but i need it to run before
any other php code on every php execution.
I would like to avoid any change of all php code (even if its only to
include the include command).
Any one knows of such way ?
I dont mind overriding this vars on ph
> -Original Message-
> From: Sebastian Detert [mailto:php-maill...@elygor.de]
> Sent: Tuesday, October 19, 2010 6:51 AM
> To: Ferdi; PHP General
> Subject: Re: [PHP] Execute a php page and don't wait for it to finish
>
> Ferdi schrieb:
> > Hi List,
> &
Ferdi schrieb:
Hi List,
I have a php page that updates data from one database to another when it is
run.
My query is, how can I trigger the execution of this update page from
another php / javascript without the calling page having to wait for the
update page to finish?
Basically, I think the up
A simple AJAX script would do the trick, no? Or does the script which
was triggered by JS get aborted if that page is unloaded?
If javascript is unavailable you could trigger it through the tag like so:
Again, not sure if it will keep running if the caller is unloaded.
--
PHP General Mailin
What about simply having the script trip a flag that another background
script checks every 60 seconds or so?
Once a minutes a background script checks to see if it needs to preform any
tasks.
When a user hits a certain page it does an ajax request to trip this flag
and immediately returns.
The ne
On Tue, 2010-10-19 at 18:50 +0530, Ferdi wrote:
> Hi List,
>
> I have a php page that updates data from one database to another when it is
> run.
> My query is, how can I trigger the execution of this update page from
> another php / javascript without the calling page having to wait for the
> upd
Hi List,
I have a php page that updates data from one database to another when it is
run.
My query is, how can I trigger the execution of this update page from
another php / javascript without the calling page having to wait for the
update page to finish?
Basically, I think the update page needs t
On 4/10/2010 9:07 PM, Kristijan Marin wrote:
Hi,
I'm experiencing very slow performance of my php scripts ... At first and
for a long time I thought it was Oracle
fault cause I didn't use binding (I rewrote the code ), but the performance
is still bad.
So I tested my sql statement and did
have you tried using a profiler like xdebug? or may be it is not a php
issue at all..
i find https://addons.mozilla.org/en-US/firefox/addon/1843 to be
helpful in these situations
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
one more thing ... I use lot of includes in the code to display some
specific content
BR,
Kris
""Kristijan Marin"" wrote in message
news:06.35.16158.4e021...@pb1.pair.com...
> Hi,
>
>
>
> I'm experiencing very slow performance of my php scripts ... At first and
> for a long time I though
Hi,
I'm experiencing very slow performance of my php scripts ... At first and
for a long time I thought it was Oracle
fault cause I didn't use binding (I rewrote the code ), but the performance
is still bad.
So I tested my sql statement and did some time measurement and found out
that Oracl
There's a tutorial here:
http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two
(have not tested it myself). The php code is available for download
from that page as well.
And the video there is awesome!
The narrator sounds like the one in my video:
http://webb
R B wrote:
Hello.
I have two scripts in php that reads a .swf or .flv movie file, like this:
SCRIPT # 1
SCRIPT # 2
The script # 1 with the .swf file works fine: the video is executed with
streaming.
The script # 2 with the .flv file is executed but without streaming.
There's a tutorial
R B wrote:
Hello.
I have two scripts in php that reads a .swf or .flv movie file, like this:
SCRIPT # 1
SCRIPT # 2
The script # 1 with the .swf file works fine: the video is executed with
streaming.
The script # 2 with the .flv file is executed but without streaming.
If i execute the mo
Hello.
I have two scripts in php that reads a .swf or .flv movie file, like this:
SCRIPT # 1
SCRIPT # 2
The script # 1 with the .swf file works fine: the video is executed with
streaming.
The script # 2 with the .flv file is executed but without streaming.
If i execute the movie.flv direc
Yannick Mortier wrote:
2009/2/13 Dan Shirah :
Using both exec() and system() I am getting the error: Unable to fork
This sounds to me like it is an restriction on the server that doesn't
allow php to fork so it could start another process.
Maybe you should ask your hoster if you are not
2009/2/13 Dan Shirah :
>>
>> Use the system() command, and enclose both your command and its
>> parameters in a pair of single quotes, as:
>>
>> system('mycmd -a alfa -b bravo');
>>
>> Paul
>> --
>> Paul M. Foster
>>
>
> Using both exec() and system() I am getting the error: Unable to fork
>
Thi
On Sun, 2009-02-15 at 00:16 +1300, German Geek wrote:
> Hi,
>
> I've had a lot of problems with shell_exec too. Mostly it was permissions or
> environment variables not being set. i dont know if there is a way to set
> environment variables in the php.ini but if not you can set them with
> shell_e
Hi,
I've had a lot of problems with shell_exec too. Mostly it was permissions or
environment variables not being set. i dont know if there is a way to set
environment variables in the php.ini but if not you can set them with
shell_exec as well, at least on unix it works. You can simply concatenate
>
> Use the system() command, and enclose both your command and its
> parameters in a pair of single quotes, as:
>
> system('mycmd -a alfa -b bravo');
>
> Paul
> --
> Paul M. Foster
>
Using both exec() and system() I am getting the error: Unable to fork
On Fri, Feb 13, 2009 at 02:30:38PM -0500, Dan Shirah wrote:
> Hello all,
>
> Can someone point me in the right direction?
>
> I'm trying to call an EXE from PHP and pass it two variables.
>
> I looked at the exec() command and I see that this can call the executable,
> but I don't see that it c
Hello all,
Can someone point me in the right direction?
I'm trying to call an EXE from PHP and pass it two variables.
I looked at the exec() command and I see that this can call the executable,
but I don't see that it can pass the variables to it.
Dan
On Tue, Jul 1, 2008 at 1:17 PM, Matt palermo <[EMAIL PROTECTED]> wrote:
> My PHP is running as a user with limited rights. I'd like to execute a
> command line as a different user. I'm trying to delete a file and the PHP
> user doesn't have access to do this. I know the username and password for
On Tue, Jul 1, 2008 at 1:17 PM, Matt palermo <[EMAIL PROTECTED]> wrote:
> My PHP is running as a user with limited rights. I'd like to execute a
> command line as a different user. I'm trying to delete a file and the PHP
> user doesn't have access to do this. I know the username and password fo
My PHP is running as a user with limited rights. I'd like to execute a
command line as a different user. I'm trying to delete a file and the PHP
user doesn't have access to do this. I know the username and password for
the admin user that has rights to delete a file. Is there a command I can
De: Daniel Brown [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 5 de junho de 2008 14:18
Para: Ryan S
Cc: php php
Assunto: Re: [PHP] Execute php commands that are in an array
On Thu, Jun 5, 2008 at 12:34 PM, Ryan S <[EMAIL PROTECTED]> wrote:
> Hey,
> its easier to start
On Thu, Jun 5, 2008 at 12:34 PM, Ryan S <[EMAIL PROTECTED]> wrote:
> Hey,
> its easier to start with code and then explain:
>
> $t_array[]='chr(rand(97,122))';
> echo $t_array[0];
>
> The above code outputs
> chr(rand(97,122))
>
> How can i execute that above code from the array instead of displayi
Hey,
its easier to start with code and then explain:
$t_array[]='chr(rand(97,122))';
echo $t_array[0];
The above code outputs
chr(rand(97,122))
How can i execute that above code from the array instead of displaying it?
Thanks!
Ryan
--
- The faulty interface lies between the chair and
Well, you're missing a semi-colin after the exec() statement, and the echo.
If it wasn't the syntax error, make sure the program exists with file_exists();
- Craige
On Sat, May 3, 2008 at 11:28 PM, <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
>
> I try write a code to execute service in my server
On 5/3/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
>
> I try write a code to execute service in my server from web browser
>
> I write next
>
> /var/www/html/squidup.html
Should it be... squidup.php?
>exec ('/usr/bin/squid/sbin/squid')
> echo "Squid UP"
> ?>
>
> but, do
Hi all
I try write a code to execute service in my server from web browser
I write next
/var/www/html/squidup.html
but, don't work from web browser.
What is wrong
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I found it myself...
I just start php in command line with "--php-ini " where I set
safe_mode Off.
Bye :)
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
--
PHP General Mailing List (http://www.php
Hello,
I am trying to execute this script (from command line):
function getMailboxSize($domain, $mailbox){
// Maildirectories are stored under /var/qmail(mailnames/domain/mailuser
$path = "/var/qmail/mailnames/" . $domain . "/" . $mailbox;
$size = shell_exec("cd " . $path . ";du -bc * | grep t
On Mon, May 28, 2007 6:02 pm, Jody Gugelhupf wrote:
> vlc command itself executed on my machine from the console shows that
> the command works fine, this
> probably means that somehting is wrong with my php file.
Not necessarily all that useful...
PHP runs as a different user in a different envi
On 5/28/07, Jody Gugelhupf <[EMAIL PROTECTED]> wrote:
or does the www-data (apache) user needs special user permissions to access the
devices
/dev/video0 /dev/dsp ? i have no clue, is there a way to see some output? thx
for the help :)
You can become the user you want to test permissions for
hi ppl :)
i run apache 2 on ubuntu feisty with php 5, i have website on which i have 2
links, the first is a
php which should start a vlc stream server on my server (see below), streaming
from my tvcard, the
vlc command itself executed on my machine from the console shows that the
command works
On Thu, April 20, 2006 3:42 am, Peter Lauri wrote:
> That was a smart solution. However, my client have not given me access
> to
> the MySQL database at this stage (just doing a small side project of
> the
> clients web site). If you could not take advantage of database and
> cron job,
> what would
jobs DS!
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 2:57 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Execute script and redirect
On Thu, April 20, 2006 2:23 am, Peter Lauri wrote:
> 1.Fill out form
On Thu, April 20, 2006 2:23 am, Peter Lauri wrote:
> 1.Fill out form and click submit
> 2.Script validates data
> 3.Data is being sent to external source via Web Service
> 4.A file is being downloaded (redirects to files location)
>
> The problem is that #3 is taking around 15 secon
Best groupmember,
I have a form that is being filled out. This is the process:
1. Fill out form and click submit
2. Script validates data
3. Data is being sent to external source via Web Service
4. A file is being downloaded (redirects to files location)
The problem
Nelson Carreira wrote:
James E Hicks III wrote:
Nelson Carreira wrote:
Yes, I've tried using both absolute and relative paths.
The system output is 0 when I execute, for example, "nvram show"
from the php. From what I know this output means success. Although
there's no output on php.
Ne
Nelson Carreira wrote:
Hello,
I'm quite new to PHP language and although I got into it pretty fast I'm
having some trouble executing system commands using php. I'm using
thttpd-php_2.21b-2_mipsel in a Linksys router and I can only execute
system commands like "ls" and "cd" from the PHP. I tri
Hello,
I'm quite new to PHP language and although I got into it pretty fast I'm
having some trouble executing system commands using php. I'm using
thttpd-php_2.21b-2_mipsel in a Linksys router and I can only execute
system commands like "ls" and "cd" from the PHP. I tried using the
different
Hi all
This one's got me stumped. I'm working on a PHP CLI interface, and I
need to allow the user to input a bit of HTML.
Rather than bandy around with readline() and the like, I thought it
would be nice to just create a temporary file, pop nano up, and read and
then delete the file once it
On Tue, March 29, 2005 10:38 am, Dipesh Khakhkhar said:
> --
>
> 1) $output = shell_exec('..\phpunit.bat C:\Run.php');
> echo $output;
Change shell_exec to exec, and use the extra parameters to get back ERROR
MESSAGES and ERROR
Hi,
I am trying to execute one application (bat file) and need to pass parameter to
it. I want to put this into wrapper file which i can call over http. Can i do
this?
I tried the following:
--
1) $output = shell_exec('..\php
Hello everybody,
I want to write a method in version 4 that executes a method of an object.
As parameter the classname and the methodname is passed:
function executeMethod($classname, $methodname) {
$object = new $classname();
$object->$methodname();
}
This does not work. What am
On Tuesday 18 January 2005 18:59, Tom wrote:
> Khan wrote:
> > Tom wrote:
> >> shell_exec()
> >
> > yes, I have try that but nothing happenes. here is my code. Is this
> > correct?
> >
> > > shell_exec('/test/acct.sh');
> > ?>
Note that shell_exec() expects a filesystem path and not your webserv
Khan wrote:
Tom wrote:
shell_exec()
yes, I have try that but nothing happenes. here is my code. Is this
correct?
looks fine to me, except that I tend to run a check to make sure that it
has run ok, like
$myReturn = shell_exec('/test/acct.sh');
or
if (shell_exec('/test/acct.sh');
On some syste
Tom wrote:
shell_exec()
yes, I have try that but nothing happenes. here is my code. Is this correct?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
shell_exec()
Tom
Khan wrote:
Hello,
I have a shell script for ading users to LDAP. It looks like this:
#!/bin/bash
MUID=userlogin
FULLNAME="First Last"
LASTNAME="Last"
DOMAIN=example.org
SERVER=qmail.example.org
PASS=userpass
cat > .ldif.tmp.$MUID << EOF
dn: uid=$MUID,ou=accounts,dc=example,dc=org
Hello,
I have a shell script for ading users to LDAP. It looks like this:
#!/bin/bash
MUID=userlogin
FULLNAME="First Last"
LASTNAME="Last"
DOMAIN=example.org
SERVER=qmail.example.org
PASS=userpass
cat > .ldif.tmp.$MUID << EOF
dn: uid=$MUID,ou=accounts,dc=example,dc=org
cn: $FULLNAME
sn: $LASTNAME
o
On Thu, 17 Jun 2004 11:59:45 +0530, narender <[EMAIL PROTECTED]> wrote:
> I want to start the execution of a script in the background at the time of user
> login. In the script there is infinite loop which is checking something after every
> 10 seconds and if it get true value the it open a popup
I want to start the execution of a script in the background at the time of user login.
In the script there is infinite loop which is checking something after every 10
seconds and if it get true value the it open a popup window on the brower and if the
user session expires then it terminate the s
-- jon
---
jon roig
web developer
email: [EMAIL PROTECTED]
phone: 888.230.7557
-Original Message-
From: BigMark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] execute script via email?
Is there a way for me to email t
Is there a way for me to email this script so it executes the close of a
round instead of doing it from the website administration .
(it is a football tipping script)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, for delayed reply, but anyway thanks for your help and your sugestions to check
the cron log, after read the tutorial and do some actions (trial and error) for a
days, finally i found i know it what's going on, the tutorial say that there is two
way to run php script with cron :
1. First
On Monday 19 January 2004 21:14, Developer wrote:
> Could I add a question regarding the cron command?
> If you automatically run a php script through the cron command is timeout
> taken under account or does it run through the "command line" which is
> faster (and timeout is not taken under accoun
From: "rudi" <[EMAIL PROTECTED]>
To: "Jason Wong" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 19, 2004 7:29 AM
Subject: Re: [PHP] execute php script with crontab
> Ok, thanks i will check it first. soon i will send mail about it.
Ok, thanks i will check it first. soon i will send mail about it.
Jason Wong <[EMAIL PROTECTED]> wrote:On Monday 19 January 2004 12:01, rudi wrote:
> 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php
I believe 'run-parts' takes a directory as argument. Try:
1 * * * * root /
On Monday 19 January 2004 12:01, rudi wrote:
> 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php
I believe 'run-parts' takes a directory as argument. Try:
1 * * * * root /usr/bin/php /var/www/html/cron/testcron.php
Also if you have:
#!/usr/bin/php
as the first line in
On Sun, 2004-01-18 at 23:01, rudi wrote:
> Hi There,
>
> I am a new be in php programming ussually i using php under windows, but now i am
> migrate to linux.
>
> I have php script to write time (testcron.php owner apache chmod 775) into file
> testcron.txt(owner apache chmod 775), and i want
Hi There,
I am a new be in php programming ussually i using php under windows, but now i am
migrate to linux.
I have php script to write time (testcron.php owner apache chmod 775) into file
testcron.txt(owner apache chmod 775), and i want this script
running from crontab.
My problem is how t
See www.php.net/passthru
Karam Chand wrote:
Hello
I have got an app wherein you need to pass a name as
the first parameter and it will output that is cout <<
a registraion code for my app based on the name.
I would like to give a web based interface wherein a
user can give his name on the for
Hello
I have got an app wherein you need to pass a name as
the first parameter and it will output that is cout <<
a registraion code for my app based on the name.
I would like to give a web based interface wherein a
user can give his name on the form and I will be able
to generate the code from
- Original Message -
> > If you start a program using this function and want to leave it running
in
> > the background, you have to make sure that the output of that program is
> > redirected to a file or some other output stream or else PHP will hang
until
> > the execution of the progra
Bas wrote:
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Bas wrote:
How do i execute a program and leave it running and while it is running
the
php-script is still continued and outputs HTML when the other program is
still running.
I need that is works on windows.
Oh
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Bas wrote:
>
> > How do i execute a program and leave it running and while it is running
the
> > php-script is still continued and outputs HTML when the other program is
> > still running.
> >
> > I need that is works on w
Bas wrote:
How do i execute a program and leave it running and while it is running the
php-script is still continued and outputs HTML when the other program is
still running.
I need that is works on windows.
Oh, ohmanual
http://www.php.net/manual/en/ref.exec.php
--
By-Tor.com
It's all a
How do i execute a program and leave it running and while it is running the
php-script is still continued and outputs HTML when the other program is
still running.
I need that is works on windows.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
apur kurub ver.1 wrote:
dear all
i will execute background process like
$program &
is there posible in php to process that statement? and return to php
immediately;
http://www.php.net/system
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
"Documentati
dear all
i will execute background process like
$program &
is there posible in php to process that statement? and return to php
immediately;
---
rgds
[xm]
http://ilkomerz36.blogspot.com
http://geocities.com/amadarum
--
PHP General Mailing List (http://www.php
[snip]
Is there a way to execute a command line php script from a browser by,
say
clicking a button and then having the browser let go and let the script
run
independet of the browser? Hope I explained that correctly.
[/snip]
You could invoke the CLI using an exec() http://www.php.net/exec
HTH!
Is there a way to execute a command line php script from a browser by, say
clicking a button and then having the browser let go and let the script run
independet of the browser? Hope I explained that correctly.
Thanks,
Rod
CinchHost.com - Web Hosting
On 22-Jun-2003 Mattia wrote:
> How to execute a command capturing the stanndard error, in addition to
> standard output? example:
>
> echo system('/bin/rm ...');
>
> I need to know when this command fails, and when it fails, i need to
> know why. Any hints?
>
> _Mattia_
>
$cmd='/bin/rm foo'
How to execute a command capturing the stanndard error, in addition to
standard output? example:
echo system('/bin/rm ...');
I need to know when this command fails, and when it fails, i need to
know why. Any hints?
_Mattia_
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
an: [EMAIL PROTECTED]
Onderwerp: [PHP] Execute command which has root privileges
Hello,
I am using FreeBSD 4.7 ,PHP 4.2.3 & Apache 1.3
I want to execute shell script which contains few IPFW commands. I have
tried with system(),exec(),passthru() command to execute script but i can't
Hello,
I am using FreeBSD 4.7 ,PHP 4.2.3 & Apache 1.3
I want to execute shell script which contains few IPFW commands. I have tried with
system(),exec(),passthru() command to execute script but i can't do that.
Apache has created "www" user on FreeBSD. I found that "www" user has not privilege
Thx all for the help
Problem solved
Miguel
"Jason Sheets" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi Miguel,
You can use cron to execute the CGI or CLI version of PHP against your
PHP script, for example /usr/local/bin/php example.php, simply create a
in your
shell
Hope this helps
Andrew
- Original Message -
From: "Miguel Brás" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 1:49 PM
Subject: [PHP] Execute at a defined time
> Hi,
>
> I was looking on PHP manual but didn'
Hi Miguel,
You can use cron to execute the CGI or CLI version of PHP against your
PHP script, for example /usr/local/bin/php example.php, simply create a
cron entry that will execute at the desired time. If you need
information on the crontab format do a man crontab or search google for
cron help
Hi,
Wednesday, February 5, 2003, 11:49:35 PM, you wrote:
MB> Hi,
MB> I was looking on PHP manual but didn't find anything about it.
MB> How can I execute a script all days at the same time? I kno i must have
MB> access to the CRON of the system, but don't know what function should I use
MB> to m
Hi,
I was looking on PHP manual but didn't find anything about it.
How can I execute a script all days at the same time? I kno i must have
access to the CRON of the system, but don't know what function should I use
to make this happen (run the script).
Miguel
--
PHP General Mailing List (htt
Use sudo (man sudo)
Mantas Kriauciunas wrote:
Hey!
What I want to do is, There is user that logs into the channel. And I
need to make script to change his password. How do I execute shell
command: passwd ? or what should I do to change that password?
Thanks!
mNTKz
--
PHP General Mailing Li
1 - 100 of 150 matches
Mail list logo