Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    1

    gnome-web-photo & php


    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 a browser I view this error: Cannot open display:

    Somebody can help me please?

    Thank you so much.

  2. #2
    Just 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 ]] )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •