Fw: [PHP-GTK] FREE BEER FOR THE FIRST PERSON TO TELL ME WHY THIS KILLS MY PC
| From: | Steph | Date: | Wed, 28 Mar 2001 16:54:14 +0000 |
| Subject: | Fw: [PHP-GTK] FREE BEER FOR THE FIRST PERSON TO TELL ME WHY THIS KILLS MY PC | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1170@lists.php.net to get a copy of this message | ||
OK, so I followed the RTFM directive & now it just crashes PHP ... Help???????
function save_selection(){
global $clist;
$clist->freeze();
$selection = $clist->selection;
while (($rowfill = $clist->selection[0]) !== null) {
$write = popen('something.txt', 'w');
fputs($write, $rowfill);
pclose($write);
}
if ($clist->selection[0] === null && $clist->focus_row >= 0)
$clist->select_row($clist->focus_row, -1);
$clist->thaw();
focusback();
}
----- Original Message -----
From: "Steph" <Steph.Fox@btinternet.com>
To: <php-gtk@lists.php.net>
Sent: Wednesday, March 28, 2001 5:10 PM
Subject: [PHP-GTK] FREE BEER FOR THE FIRST PERSON TO TELL ME WHY THIS KILLS MY PC
(err msg in dos box: "Bad command or filename" - repeatedly, eternally, cos it's in
that loop somewhere -)
function save_selection(){
global $clist;
$clist->freeze();
$selection = $clist->selection;
while (($rowfill = $clist->selection[0]) !== null) {
$command = ($rowfill>'something.txt');
$write = popen ($command, 'w');
fputs ($write, "\r");
pclose ($write);
}
if ($clist->selection[0] === null && $clist->focus_row >= 0)
$clist->select_row($clist->focus_row, -1);
$clist->thaw();
focusback();
}
--
PHP GTK Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net