Written some cool source code? Upload it to Programmer's Heaven.

PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1641
Number of posts: 4613

This Forum Only
Post New Thread

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




 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 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.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.