Ok, I'm still a little confused. You mention header.html and access.php. For access.php use the os call. You'll probably want to use popen, and you also need to change your php script slightly. In order to run php scripts from the command line you have to put #!/usr/bin/php as the first line in the php script. You then need to make sure that it's executable. Run this from the command line: chmod 755 access.php Now you can call it from python with os.popen('/path/to/access.php')
-- http://mail.python.org/mailman/listinfo/python-list