note 57525 added to function.popen

From: Date: Thu, 06 Oct 2005 12:48:32 +0000
Subject: note 57525 added to function.popen
Groups: php.notes 
Request: Send a blank email to php-notes+get-96508@lists.php.net to get a copy of this message
Writing and executing a bash script is as simple as that: $f = popen ("/bin/bash","w"); fwrite($f, "export KRB5CCNAME=tempfile\n"); fwrite($f, "export KRBTKFILE=tempfile\n"); fwrite($f, "$KINIT --keytab=$GLOBALS["KADMIN_KEYFILE"] --use-keytab --afslog $GLOBALS["KADMIN_PRINC"]\n"); fwrite($f, "pts delete $uid\n"); fwrite($f, "fs rmmount $rwhome\n"); fwrite($f, "vos remove sanjo b user.$uid\n"); fwrite($f, "$KDESTROY\n"); pclose($f); ---- Manual Page -- http://www.php.net/manual/en/function.popen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57525 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57525&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57525&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96508) next »