Integrate PHP + Unix commands

Hi
I am using fedora 4, its only for desktop usage. its in gui mode. the system is always on and in login screen.
whenever a particular user logins in, aphp page inside the system should run.
The user should not be able to view the desktop.
The user has the info in the php webpage to work with.
if he completes his inputs.
i have an object button in php page where when user clicks it should logout from operating system and return to login screen again.

how to inegrate php script with unix commands

please help

thanks in advance

I don't know if I'm close to what you need, but try creating a script like below:
#!/usr/local/bin/php -q
<?
some php commands here

?>

and run this script whenever you want (user login/user logout, manually, whatever)

I'm not sure about php delimiters. Try without them in case it doesn't work with them.

Or just search google.