By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

how to call cmd from a php script

P: 3
hello

i would like to ask you how can i call cmd from a php script and 'call'
C:\Program Files\Xpdf
Mar 2 '08 #1
Share this Question
Share on Google+
4 Replies


ronverdonk
Expert 2.5K+
P: 4,258
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
Mar 2 '08 #2

P: 3
naf
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
Mar 2 '08 #3

ronverdonk
Expert 2.5K+
P: 4,258
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
Mar 2 '08 #4

P: 3
naf
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");
Mar 2 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.