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
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
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
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
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
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
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
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
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
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()
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,
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
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
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
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:
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
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
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
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
--
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
> 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
21 matches
Mail list logo