Re: Re: [PHP] Execute permission question

2011-10-28 Thread Tim Streater
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: #!

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
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

Re: [PHP] Execute permission question

2011-10-28 Thread Daniel Brown
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

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
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

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
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

Re: [PHP] Execute permission question

2011-10-28 Thread Geoff Shang
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

Re: [PHP] Execute permission question

2011-10-27 Thread Daniel Brown
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

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
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

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
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

Re: [PHP] Execute permission question

2011-10-27 Thread Daniel Brown
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."

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
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

Re: [PHP] Execute permission question

2011-10-27 Thread Ashley Sheridan
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

Re: [PHP] Execute permission question

2011-10-27 Thread Larry Martell
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

[PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
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

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Stuart Dallas
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

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Tamara Temple
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

[PHP] execute my php code before every php call

2011-06-12 Thread techloop
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

RE: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Tommy Pham
> -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, > &

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Sebastian Detert
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

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Marc Guay
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

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread chris h
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

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Steve Staples
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

[PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Ferdi
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

[PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread Al
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

Re: [PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread kranthi
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

[PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-10 Thread Kristijan Marin
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

[PHP] PHP execute very slow : PHP Version 5.2.6

2010-04-10 Thread Kristijan Marin
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

Re: [PHP] Execute flash files with PHP

2009-02-19 Thread tedd
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

Re: [PHP] Execute flash files with PHP

2009-02-19 Thread Chris
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

Re: [PHP] Execute flash files with PHP

2009-02-19 Thread Chris
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

[PHP] Execute flash files with PHP

2009-02-19 Thread R B
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

Re: [PHP] Execute EXE with variables

2009-02-18 Thread Michael A. Peters
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

Re: [PHP] Execute EXE with variables

2009-02-18 Thread Yannick Mortier
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

Re: [PHP] Execute EXE with variables

2009-02-14 Thread Ashley Sheridan
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

Re: [PHP] Execute EXE with variables

2009-02-14 Thread German Geek
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

Re: [PHP] Execute EXE with variables

2009-02-13 Thread 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

Re: [PHP] Execute EXE with variables

2009-02-13 Thread Paul M Foster
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

[PHP] Execute EXE with variables

2009-02-13 Thread Dan Shirah
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

Re: [PHP] Execute command line as a different user

2008-07-07 Thread Daniel Brown
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

Re: [PHP] Execute command line as a different user

2008-07-01 Thread Dan Joseph
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

[PHP] Execute command line as a different user

2008-07-01 Thread Matt palermo
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

RES: [PHP] Execute php commands that are in an array

2008-06-05 Thread Thiago Pojda
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

Re: [PHP] Execute php commands that are in an array

2008-06-05 Thread Daniel Brown
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

[PHP] Execute php commands that are in an array

2008-06-05 Thread Ryan S
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

Re: [PHP] Execute command from web browser

2008-05-04 Thread Craige Leeder
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

Re: [PHP] Execute command from web browser

2008-05-03 Thread Casey
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

[PHP] Execute command from web browser

2008-05-03 Thread opc
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

[PHP] Execute a script from command line on a Linux system with Plesk (safe mode) [solved]

2008-01-05 Thread Leonidas Safran
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

[PHP] Execute a script from command line on a Linux system with Plesk (safe mode)

2008-01-05 Thread Leonidas Safran
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

Re: [PHP] php execute command on server

2007-05-30 Thread Richard Lynch
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

Re: [PHP] php execute command on server

2007-05-28 Thread Greg Donald
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

[PHP] php execute command on server

2007-05-28 Thread Jody Gugelhupf
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

RE: [PHP] Execute script and redirect

2006-04-20 Thread Richard Lynch
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

RE: [PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
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

Re: [PHP] Execute script and redirect

2006-04-20 Thread Richard Lynch
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

[PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
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

Re: [PHP] Execute a shell command using thttpd-php

2006-03-15 Thread James E Hicks III
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

Re: [PHP] Execute a shell command using thttpd-php

2006-03-14 Thread Chris
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

[PHP] Execute a shell command using thttpd-php

2006-03-14 Thread Nelson Carreira
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

[PHP] Execute a program from PHP CLI and allow user interaction

2005-11-22 Thread Jasper Bryant-Greene
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

Re: [PHP] Execute appliction and pass parameters to it!

2005-03-29 Thread Richard Lynch
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

[PHP] Execute appliction and pass parameters to it!

2005-03-29 Thread Dipesh Khakhkhar
  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

[PHP] execute methods dynamically

2005-03-20 Thread Rainer Hahnekamp
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

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Jason Wong
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

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
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

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Khan
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

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
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

[PHP] Execute shell script from PHP

2005-01-17 Thread Khan
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

Re: [PHP] Execute a scipt in the background

2004-07-20 Thread Justin Patrin
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

[PHP] Execute a scipt in the background

2004-07-19 Thread narender
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

RE: [PHP] execute script via email?

2004-04-06 Thread jon roig
-- 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

[PHP] execute script via email?

2004-04-06 Thread BigMark
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

Re: [PHP] execute php script with crontab

2004-01-20 Thread rudi
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

Re: [PHP] execute php script with crontab

2004-01-19 Thread Jason Wong
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

Re: [PHP] execute php script with crontab

2004-01-19 Thread Developer
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.

Re: [PHP] execute php script with crontab

2004-01-18 Thread rudi
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 /

Re: [PHP] execute php script with crontab

2004-01-18 Thread Jason Wong
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

Re: [PHP] execute php script with crontab

2004-01-18 Thread Robert Cummings
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

[PHP] execute php script with crontab

2004-01-18 Thread rudi
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

Re: [PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Sophie Mattoug
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

[PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Karam Chand
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

Re: [PHP] Execute programs

2003-11-22 Thread Eric Wood
- 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

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
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

Re: [PHP] Execute programs

2003-11-22 Thread Bas
"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

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
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

[PHP] Execute programs

2003-11-22 Thread Bas
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

Re: [PHP] Execute Background Process

2003-11-12 Thread Burhan Khalid
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

[PHP] Execute Background Process

2003-11-11 Thread apur kurub ver.1
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

RE: [PHP] execute command line script from browser

2003-09-02 Thread Jay Blanchard
[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!

[PHP] execute command line script from browser

2003-08-30 Thread Rodney Green
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

Re: [PHP] execute a command

2003-06-22 Thread Don Read
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'

[PHP] execute a command

2003-06-22 Thread Mattia
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

RE: [PHP] Execute command which has root privileges

2003-06-09 Thread esctoday.com | Wouter van Vliet
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

[PHP] Execute command which has root privileges

2003-06-08 Thread vijaypatel
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

Re: [PHP] Execute at a defined time

2003-02-05 Thread Miguel Brás
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

Re: [PHP] Execute at a defined time

2003-02-05 Thread Andrew Brampton
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'

Re: [PHP] Execute at a defined time

2003-02-05 Thread Jason Sheets
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

Re: [PHP] Execute at a defined time

2003-02-05 Thread Tom Rogers
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

[PHP] Execute at a defined time

2003-02-05 Thread Miguel Brás
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

Re: [PHP] execute shell commands

2003-01-16 Thread Marek Kilimajer
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   2   >