homepage Welcome to WebmasterWorld Guest from 54.167.179.48
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Syntax check: pdftk running through php exec
The_Hat

10+ Year Member



 
Msg#: 4079112 posted 4:28 pm on Feb 12, 2010 (gmt 0)

I installed the library for pdftk on my LAMP, and am trying to run it programatically to split a pdf into separate files for each page..

Assuming that I have the correct location for the pdftk library should

<? $command = "/usr/local/bin/pdftk example.pdf burst";
exec($command); ?>


with the pdf in the same folder as the php script do it?

 

The_Hat

10+ Year Member



 
Msg#: 4079112 posted 7:33 pm on Feb 15, 2010 (gmt 0)

Nobody, really?

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4079112 posted 12:07 am on Feb 16, 2010 (gmt 0)

Sounds about right. Have you tried this yet? If you have safe mode on, make sure that the pdftk is in the allowed execution directory.

The_Hat

10+ Year Member



 
Msg#: 4079112 posted 5:46 pm on Feb 17, 2010 (gmt 0)

Hello, thanks for the reply, I have tried this and it doesn't do anything.. it also responds with no error.. no output.. nothing..

I appreciate your experience eelixduppy,

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4079112 posted 6:24 pm on Feb 17, 2010 (gmt 0)

Before trying through PHP, trying running the same command in the command line and tell me what happens.

The_Hat

10+ Year Member



 
Msg#: 4079112 posted 8:26 pm on Mar 15, 2010 (gmt 0)

turns out it wasn't installed correctly, I had my hoster instal the binary and the above code works great..

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved