Posted by Michael Cooney on 11/27/06 16:05
Don't execute shell commands to do this. In PHP5 use
http://php.net/scandir, in PHP4 use http://php.net/readdir.
Sonnich wrote:
> Hi all
>
> I was wondering to try something like this:
>
> exec("dir \"".$sSearchPath."\\*.pdf\" >c:\hhh.txt");
>
> though, it hangs at that point. I tried system(), shell_exec/() etc
> similar result.
>
> Have anyone tried this?
>
> S
Navigation:
[Reply to this message]
|