start your PHP files with: #! /usr/bin/php
Replace /usr/bin/php with the path to php. You will need to make the file executable by chmod ing it. (try: $ chmod +x ./yourscript.php ) As a side note, starting any text file with #! followed by the path to a language interpreter, and chmoding the file so that it is executable will allow you to send the rest of the file to the interpreter and run it as a full fledged program. -Dan On Mon, 2003-07-07 at 08:41, Uros wrote: > Hello! > > Can somebody give me any workable example how to run some script written in > PHP in Unix console. > > I wan't to write some server aplication. So it has to be run in the > backgroud. > > > -- > Best regards, > Uros > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php