If you're on a unix system, you can still use the unix command. Just put it in quotes and call it with the system() function. Just beware that if you do this from a cgi program, make SURE you know what directory you are in. You program will execute in your cgi directory, and your path will be based on the full path of your web site, not the directory structure you use in your web pages. To be safe, use
Code:
$ENV{'DOCUMENT_ROOT'}
in your program where you use "/" in your web page. Tracy Dryden
tracy@bydisn.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.