On Sunday 30 September 2001 04:38 pm, Andreas D. Landmark wrote:
> At 01.10.2001 00:02, you wrote:
> >I have a shell script that I am executing like this $files =
> > `shellscript`; but if I do an if ($files) it doesn't read $files as
> > existing.  The contents of the shell script is a smbclient line that
> > copies a bunch of DBF files from another machine.  Anyone have any idea? 
> > Below is a little snipit of my code
> >
> >  $files = `updatemp`;
> >
> >
> >   if ($files) {
> >     print "$files<br>";
> >     print "I am god";
> >
> >   } else {
> >     print "$files";
> >     print "It's ok you'll get it working. =)";
> >   }
>
> using `s doesn't work quite like they do in BASH (and many other
> scriptlanguages)
> use passthru() or something instead...
>
> I can't really see why you're doing this in PHP as BASH would be much more
> efficient...
> and to some extent easier, not to mention that this isn't far off a
> one-liner...


Because I need to update the my mysql database via a web interface


-- 
PHP Database 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