Results 1 to 2 of 2
Hello,
I have implemented this script:
PHP Code:
<?php
shell_exec ( 'gnome-web-photo -t 0 --mode=thumbnail -w 512 -s 256 extURL /tmp/google.jpg' );
?>
If I execute it in the shell it runs perfectly, but if I execute it in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-24-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 1
gnome-web-photo & php
Hello,
I have implemented this script:
If I execute it in the shell it runs perfectly, but if I execute it in a browser I view this error: Cannot open display:PHP Code:<?php
shell_exec('gnome-web-photo -t 0 --mode=thumbnail -w 512 -s 256 extURL /tmp/google.jpg');
?>
Somebody can help me please?
Thank you so much.
- 04-20-2010 #2Just Joined!
- Join Date
- Feb 2010
- Posts
- 4
try this function exec ( string $command )
Hi,
shell_exec() function Executes command via shell and return the complete output as a string.
Please try this function.It may help you.
string exec ( string $command [, array &$output [, int &$return_var ]] )


Reply With Quote
