> Tamara Temple <tamouse.li...@gmail.com> hat am 26. August 2013 um 08:33
> geschrieben:
>
>
>
> On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg
> <erosenb...@hygeiabiomedical.com> wrote:
>
> > Dear List -
> >
> > I'm lost on this one -
> >
> > This works -
> >
> > $out = system("ls -l ",$retvals);
> > printf("%s", $out);
> >
> > This does -
> >
> > echo exec("ls -l");

Please show the output of the directory listing.
Please us "ls -la"

> >
> > This does not -
> >
> > if( !file_exists("/var/www/orders.txt"));
> > {
> >   $out = system("touch /var/www/orders.txt", $ret);

Maybe you don't have write permissions on the folder?

> >   $out2 = system("chmod 766 /var/www/orders.txt", $ret);
> >   echo 'file2<br />';
> >   echo file_exists("/var/www/orders.txt");
> > }
> >
> > and this does not -
> >
> > if( !file_exists("/var/www/orders.txt"));
> > {
> >   exec("touch /var/www/orders.txt");
> >   exec("chmod 766 /var/www/orders.txt");
> >   echo 'file2<br />';
> >   echo file_exists("/var/www/orders.txt");
> > }
> >
> > Ethan
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> When you say "does not work", can you show what is actually not working? I
> believe the exec and system functions are likely working just fine, but that
> the commands you've passed to them may not be.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to