PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1794
Number of posts: 4903

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
exec not working Posted by whitepaint on 1 Mar 2004 at 5:54 PM
I am trying to use the exec command:

$cmd = "find ../ \\( -name '*.php4' \\) > FileList.txt";
exec($cmd);

this does not work using the exec. It works fine at the unix prompt: find ../ \( -name '*.php4' \) > FileList.txt

If anyone could advise me as to why the php call does not work I would be very grateful

Thanx
Report
Re: exec not working Posted by skylar on 2 Mar 2004 at 1:12 PM
i can't help you much but you can check here for some reference.. goto bottom and see if anyone else has an answer for you:


http://us2.php.net/manual/en/function.exec.php
Snoochie Boochies




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.