On Tue, 2004-12-14 at 16:38, Bruno Santos wrote: > Hello all. > > i'm working with php for about 3 years and i must say: i cant get tired > of it !! :-) > > since my first page, ive used php as a server side language, embebed in > html pages. now, i need to develop a small script to run as stand alone. > how can i do it ? > > just like bourn shell, ive used #!/usr/bin/php -q, but it apears is not > working ... > > can someone tell me how to i use php stand alone ? > chears !!!
Use: #!/usr/bin/php -qC The C flag makes it the working directory for the script the same one as your are in when you invoke it. Also ensure that your PHP binary exists at the specified path. Last but not least you still need the opening PHP tag: <?php Put it right after the first line (the binary specification header). Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php