+ Reply to Thread
Results 1 to 2 of 2

Thread: calling a php page with get

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    36

    calling a php page with get

    I want to convert a web page to a pdf using wkhtmltopdf . I tested it with a static template using that syntax and it was successful :
    Code:
    wkhtmltopdf mystaticpage.html mystaticpage.pdf
    The problem is the actual page is a dynamic php page with tables that rely on 3 get variables, like :
    Code:
    http://mydynamicpage.php?clientid=1782&datestart=201201&dateend=201202
    I tried that syntax but failed :
    Code:
    wkhtmltopdf mydynamicpage.php?clientid=1782&datestart=201201&dateend=201202 mydynamicpage.pdf
    And i can`t figure how to work it out , could you help me figure it out ?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    45
    In linux you can use wget command to get result html from an URL, just use that command:
    Code:
    wget "http://localhost/mydynamicpage.php?clientid=1782&datestart=201201&dateend=201202"

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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