How i can re-use an existing php code?
| From: | Georgios Kalyvas | Date: | Mon, 19 Aug 2002 21:59:04 +0000 |
| Subject: | How i can re-use an existing php code? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2346@lists.php.net to get a copy of this message | ||
Hello,
i have some php scripts running under windows (dos prompt) with 3 parms
from the command-line, like: convert.php parm1 parm2 ecc. Its possible
passing this parm(s) from a php-gtk dialog? I have the function
I have the old php script in a include file with the function
convert(parm1,parm2,parm3) inside.
In my php-gtk program I was defined the function go_convert()
associated at button Submit with the following code:
<? php
include (convert.inc) // the old php-script
(
)
function go_convert(){
global $window,$txtparm1,$txtparm2,$txtparm3,$parm1,$parm2,$parm3;
$parm1 = $txtparm1->get_text();
$parm2 = $txtparm2->get_text();
$parm3 = $txtparm3->get_text();
echo $parm1; // work
echo $parm2; // work
echo $parm3; // work
convert($parm1,$parm2,$parm3); // dont work
}
(
)
?>
During the execution, the value of ($parm1, $parm2, $parm3) inside the
function convert are spaces.
Any idea??????
Thanks
Giorgio