Does exec not call a system call specific to the OS being run.
I.e. if you're using exec on windows rm won't work will it (certainly not
W98) anyway, I think it's a problem that you need to run the script on
linux, which has an rm command, or replace the rm command with del.

I've not used exec so am only looking at the obvious but could be wrong, but
I'm sure others will comments if I'm wrong.

Adam Allen


----- Original Message -----
From: Alain Samoun <[EMAIL PROTECTED]>
To: Toni Ranta <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 2:28 PM
Subject: Re: [PHP-WIN] Help! I'm getting pissed...


> It will make it easier if you can show the part of the code where you get
> the error. Exec is supposed to have been fixed in PHP4.06
> Alain
>
> On Sat, Jul 07, 2001 at 10:57:44PM +0300, Toni Ranta wrote:
> > Why do I keep getting error messages such as:
> >
> > Warning: Unable to fork [rm -rf ../userlist/*] in
> > c:\ohjelmatiedostot\apache group\apache\htdocs\chat\admin\admin.php on
> > line 331
> > Warning: Unable to fork [ls ../users | grep -c ""] in
> > c:\ohjelmatiedostot\apache group\apache\htdocs\chat\admin\admin.php on
> > line 350
> >
> > This problem occures with the exec function, as you all might have
> > understood from the above error messages.
> >
> > I'm using PHP4.0.6 on Win98 platform with Apache 1.3.20 server.
> >
> > I just can't figure this out. Someone a little more experienced told me,
> > that this particular php-script can't work under Windows. I'm not so
> > familiar with the subject, so I'm just banging my head to the wall with
> > this, trying to search an answer to this.
> >
> > So, if anyone can tell me, is it possible to get this problem fixed
> > without changing OS, please tell me how to do so. I'm not in the mood of
> > installing linux or any other second OS on my computer.
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to