wkhtmltoimage-amd64 with php

Discussion in 'PHP' started by DewShare, Jun 22, 2011.

  1. #1
    I am trying to use wkhtmltoimage on linux hosting that allows shell_exec and exec commands. system is Centos 64bit. i have download wkhtmltoimage-amd64 extension and upload to the server. when i execute commands nothing happened

    I am failed to use this.

    here it is my code echo shell_exec("wkhtmltoimage-amd64 http://google.com/ test.png");

    also I try with shell access but no use,

    please can you guide me how can i use this and make it working on my hosting

    Shall be thankful
     
    DewShare, Jun 22, 2011 IP
  2. rjm

    rjm Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I also have this problem, anyone know a fix?
     
    rjm, Dec 13, 2011 IP
  3. DewShare

    DewShare Well-Known Member

    Messages:
    426
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #3

    The only way to solve this problem is to ask your hosting to allow Exec command when they enable this you can use following code


    best of luck
     
    DewShare, Dec 13, 2011 IP
  4. rjm

    rjm Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How about just trying to get it to work locally for now using MAMP?
     
    rjm, Dec 14, 2011 IP