how to call cmd from a php script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • naf
    New Member
    • Mar 2008
    • 3

    #1

    how to call cmd from a php script

    hello

    i would like to ask you how can i call cmd from a php script and 'call'
    C:\Program Files\Xpdf
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Originally posted by naf
    hello

    i would like to ask you how can i call cmd from a php script and 'call'
    C:\Program Files\Xpdf
    Welcome to The Scripts!

    Have a look at the php documentation at Program Execution Functions

    Ronald

    Comment

    • naf
      New Member
      • Mar 2008
      • 3

      #3
      Originally posted by ronverdonk
      Welcome to The Scripts!

      Have a look at the php documentation at Program Execution Functions

      Ronald
      Thank you!
      well, i would like to convert a pdf file to txt so i can search inside them.I download the Xpdf and i save it to the path i mention before.So i have to write a php script to call the cmd and do the conversion but i don't know how
      Cause i am really new at php I really appreciate your help

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        What is it you don't know: how to write the PHP exec command or how to do the PDF-text conversion? The former is shown in the link I gave you. The latter is a bit more difficult.

        Ronald

        Comment

        • naf
          New Member
          • Mar 2008
          • 3

          #5
          for the conversion i suppose to use the Xpdf. is it another way to do it?
          As far as calling cmd is it something like that:
          exec("cd C:\Program Files\Xpdf");

          Comment

          Working...