php exec command

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
selvamuthu
Forum Newbie
Posts: 2
Joined: Thu Nov 27, 2014 9:03 am

php exec command

Post by selvamuthu »

hello everybody

exec('type myfile.txt > lpt1') is not working
but
exec('type myfile.txt > some.txt') is working

lpt1 is well connected in dos shell and works fine
net use lpt1 \\computer\sharename /persistent:yes
successfully connected

please help asap
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php exec command

Post by Christopher »

(#10850)
Post Reply