in reply to Run another script

If your PHP script sits under Apache, you can launch it by requesting your http://localhost/myspecialurl.
See HTTP::Request manual:
require HTTP::Request; $request = HTTP::Request->new(GET => 'http://www.example.com/'); $ua = LWP::UserAgent->new; $response = $ua->request($request);