Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    gnome-web-photo & php


    I have implemented this script:

    PHP Code:
    ('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

    try this function exec ( string $command )

    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