Alt.Binz forum

Alt.Binz (English) => Help => Topic started by: alik on January 12, 2010, 02:06:24 pm

Title: execute command with Alt-binz
Post by: alik on January 12, 2010, 02:06:24 pm
Hi Guys,

I'm trying to exec a php file with php.exe test.php "$coll"
I just can't make it work ?
What am i missing ?

Is there a log for this that i'll know if this was executed already or not ?

Tnx,

ALik.
Title: Re: execute command with Alt-binz
Post by: davidq666 on January 12, 2010, 06:09:13 pm
Hi Guys,

I'm trying to exec a php file with php.exe test.php "$coll"
I just can't make it work ?
What am i missing ?

Is there a log for this that i'll know if this was executed already or not ?

Tnx,

ALik.


it's "$col" with one l...
Title: Re: execute command with Alt-binz
Post by: alik on January 13, 2010, 09:26:23 am
tried with one l "$col" still dont work.

What am i missing to make it work ?
Title: Re: execute command with Alt-binz
Post by: Hecks on January 13, 2010, 04:13:34 pm
tried with one l "$col" still dont work.

What am i missing to make it work ?

Little more info: is the php script being called at all?  If not, is php.exe in your %PATH%?  Try with the full path to it. Write a test script that will log if the script is called and check $argc and $argv.
Title: Re: execute command with Alt-binz
Post by: DAL on January 13, 2010, 04:16:23 pm
Try removing the quotes from "$col".
Title: Re: execute command with Alt-binz
Post by: alik on January 13, 2010, 04:40:18 pm
My script is:

Code: [Select]
<?php

$_SERVER
['argv'];
//echo $argv[1];


$myFile "testFile.txt";
$fh fopen($myFile'w') or die("can't open file");
fwrite($fh$argv[1]);
fclose($fh);

?>


It's working without the "" but i still can't get it work without the par checking.
And for some reason i can't get the $col param

Alik.

tried with one l "$col" still dont work.

What am i missing to make it work ?

Little more info: is the php script being called at all?  If not, is php.exe in your %PATH%?  Try with the full path to it. Write a test script that will log if the script is called and check $argc and $argv.

Title: Re: execute command with Alt-binz
Post by: Hecks on January 13, 2010, 05:29:48 pm
If I were in your  position, I'd now be trying to get to the root of the problem by asking questions like these:

- is it a prob with the variable subsititution? try passing just a string as param

- is it a prob with just $col? try $d or $u

- is the execute command really being applied to the coll? edit with Ctrl+K.

etc.