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

2010-11-03 Thread Ferdi
On 19 October 2010 18:50, 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 > update page

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

2008-07-01 Thread Jon Drukman
Matt Palermo wrote: I'm using the following command and I'm not getting any feedback: exec("echo 'adminPass' | sudo -u adminAccount -S whoami", $f, $r); Both $f and $r don't contain any data. This leads me to believe that the command is not being run for whatever reason. Is there something

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

2008-07-01 Thread Matt Palermo
I'm using the following command and I'm not getting any feedback: exec("echo 'adminPass' | sudo -u adminAccount -S whoami", $f, $r); Both $f and $r don't contain any data. This leads me to believe that the command is not being run for whatever reason. Is there something wrong with this comma

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

2008-07-01 Thread Shawn McKenzie
Shawn McKenzie wrote: Matt palermo 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 the admin user that has rights

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

2008-07-01 Thread Matt Palermo
Okay, I'll have to look into that. I have very limited knowledge with shell scripts. You wouldn't have an example of one that can do what I need do you? Thanks, Matt "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Matt palermo wrote: My PHP is running as a us

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

2008-07-01 Thread Shawn McKenzie
Matt palermo 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 the admin user that has rights to delete a file. Is

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

2008-06-05 Thread Gabriel Sosa
you can use eval http://ar2.php.net/manual/es/function.eval.php but remember escape all wildcard caracters try eval("\$a = 3; \$b = 2; \$c = \$a + \$b;"); echo $c // should show 5 saludos On Thu, Jun 5, 2008 at 1:46 PM, Ryan S <[EMAIL PROTECTED]> wrote: > Hey all! > Disregard my last email as i

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

2008-06-05 Thread Ryan S
Hey all! Disregard my last email as i solved it myself via eval()... Cheers! R 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 dis

[PHP] Re: Execute script and redirect

2006-04-20 Thread Barry
Peter Lauri wrote: 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 loc

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

2005-11-22 Thread n.g.
use proc_open , connect stdin/out of php cli to nano, i guess On 11/23/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > 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()

[PHP] Re: execute methods dynamically

2005-03-20 Thread Rainer Hahnekamp
Sorry my fault. It's working of course. Am Sun, 20 Mar 2005 18:47:20 +0100 schrieb 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,

[PHP] Re: Execute a scipt in the background

2004-07-20 Thread Jason Barnett
Narender 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 window on the brower and if the user session expires then it te

[PHP] Re: Execute command which has root privileges

2003-06-08 Thread Dustin Pate
You could use sudo, if your system has that. That's what I do for the rare occasion I have to call a script with root perms. But use sudo with care! "Vijaypatel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, I am using FreeBSD 4.7 ,PHP 4.2.3 & Apache 1.3 I want to execute

[PHP] Re: Execute at a defined time

2003-02-05 Thread Jean-Christian Imbeault
Do a "man crontab" to get info. Or Google for turotials on how to use cron. Also make sure that PHP is available from the command line. Do a simple test, on the command line type: php --version If you get version iformation as output the PHP is installed for command line useage and will work

[PHP] Re: Execute a cgi inside of php?

2002-12-12 Thread matty rozen
you can use the curl library to execute the cgi. "Richard Creech" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello List, > Is there a way to execute a cgi inside of php? This is what a customer wants to do: > > > include(""); > > but get an error message:

[PHP] Re: Execute a cgi inside of php?

2002-12-11 Thread Kyle Gibson
include(""); If you wish for this to be a correct PHP statement, it should be: include(""); Otherwise it will error. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Execute...

2002-10-08 Thread Brian McGarvie
it's messy but works... I would never do it this way... I suggest a javascript calculator approach... "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > dunno if it's work, but, if you find out the client's OS, then you will know > the path to c

[PHP] Re: Execute...

2002-10-08 Thread Brian McGarvie
dunno if it's work, but, if you find out the client's OS, then you will know the path to calc.exe as it resideds in the windows dir of most windoze installs... so find OS, then u know path, then jist do a ... launch windows calculator "Bsantos Php" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

[PHP] Re: execute remote CGI without redirect

2001-10-02 Thread Richard Lynch
http://php.net/fopen Use the URL of their site. Or even http://php.net/file -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm --

[PHP] Re: execute a script on access to a directory

2001-09-07 Thread Doug Granzow
You can make "go" the name of your PHP script, then put this in your Apache config: ForceType application/x-httpd-php Now in your "go" script, you have it do whatever you wanted it to do, then use an include to load the "getit" script. Here's an except from my equivalent of your 'go' scri

[PHP] Re: Execute mixed php code from mysql?

2001-08-01 Thread Richard Lynch
> echo $row[code]; You want eval, but since your code starts off with HTML, and eval expects to be doing PHP, you need to do more like: $html = $row['code'] eval("?>$htmlhttp://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http