note 37835 added to function.system
| From: | diogaogv at icqmail dot com | Date: | Fri, 28 Nov 2003 21:57:07 +0000 |
| Subject: | note 37835 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61098@lists.php.net to get a copy of this message | ||
a really useful use for import(); while running the server at ur own machine is taking a screenshot
of you desktop and showing it to the guest !!!
<?
echo system("/usr/X11R6/bin/import -window root -display localhost:0
/mnt/d/Desenvolvimento/Desenvolvimento\ WWW/import/cache/imagem.jpg -quality 30" ."
2>&1");
?>
<img src="cache/imagem.jpg">
remember to set chmod 777 to your directory (called "cache" on my code). also do
"xhost +" or you r gonna get a xlib error saying that it could not connect to x server at
localhost...
the code is still too simple. i've just done it. e.g. you can improve a real cache system
avoying more than one screenshot in a minute while...
that is it! hope u enjoy it ( rofl... =DDD ) ...
diogo86
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37835
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37835&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37835&report=yes
Search -- http://master.php.net/manage/user-notes.php